Skip to content

Commit 9f74fb8

Browse files
committed
remove SO_REUSEPORT on linux
1 parent 064d7f6 commit 9f74fb8

File tree

4 files changed

+4
-7
lines changed

4 files changed

+4
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Once you have a Mojo project set up locally,
6161

6262
```toml
6363
[dependencies]
64-
lightbug_http = ">=0.1.8"
64+
lightbug_http = ">=0.1.9"
6565
```
6666

6767
3. Run `magic install` at the root of your project, where `mojoproject.toml` is located

lightbug_http/net.mojo

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,14 +150,11 @@ struct ListenConfig:
150150
try:
151151

152152
@parameter
153-
# REUSEADDR doesn't work on ubuntu.
153+
# TODO: do we want to reuse port on linux? currently doesn't work
154154
if os_is_macos():
155155
socket.set_socket_option(SO_REUSEADDR, 1)
156-
else:
157-
socket.set_socket_option(SO_REUSEPORT, 1)
158156
except e:
159157
logger.warn("ListenConfig.listen: Failed to set socket as reusable", e)
160-
# TODO: Maybe raise here if we want to make this a hard failure.
161158

162159
var bind_success = False
163160
var bind_fail_logged = False

mojoproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ channels = ["conda-forge", "https://conda.modular.com/max", "https://repo.prefix
44
description = "Simple and fast HTTP framework for Mojo!"
55
name = "lightbug_http"
66
platforms = ["osx-arm64", "linux-64"]
7-
version = "0.1.8"
7+
version = "0.1.9"
88

99
[tasks]
1010
build = { cmd = "rattler-build build --recipe recipes -c https://conda.modular.com/max -c conda-forge --skip-existing=all", env = {MODULAR_MOJO_IMPORT_PATH = "$CONDA_PREFIX/lib/mojo"} }

recipes/recipe.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ context:
55

66
package:
77
name: "lightbug_http"
8-
version: 0.1.8
8+
version: 0.1.9
99

1010
source:
1111
- path: ../lightbug_http

0 commit comments

Comments
 (0)