diff --git a/README.md b/README.md index bb3011fc..4e272b99 100644 --- a/README.md +++ b/README.md @@ -61,7 +61,7 @@ Once you have a Mojo project set up locally, ```toml [dependencies] - lightbug_http = ">=0.1.8" + lightbug_http = ">=0.1.9" ``` 3. Run `magic install` at the root of your project, where `mojoproject.toml` is located diff --git a/lightbug_http/net.mojo b/lightbug_http/net.mojo index dada7e13..9b89d26e 100644 --- a/lightbug_http/net.mojo +++ b/lightbug_http/net.mojo @@ -150,14 +150,11 @@ struct ListenConfig: try: @parameter - # REUSEADDR doesn't work on ubuntu. + # TODO: do we want to reuse port on linux? currently doesn't work if os_is_macos(): socket.set_socket_option(SO_REUSEADDR, 1) - else: - socket.set_socket_option(SO_REUSEPORT, 1) except e: logger.warn("ListenConfig.listen: Failed to set socket as reusable", e) - # TODO: Maybe raise here if we want to make this a hard failure. var bind_success = False var bind_fail_logged = False diff --git a/mojoproject.toml b/mojoproject.toml index fc6b3baa..caa67d9c 100644 --- a/mojoproject.toml +++ b/mojoproject.toml @@ -4,7 +4,7 @@ channels = ["conda-forge", "https://conda.modular.com/max", "https://repo.prefix description = "Simple and fast HTTP framework for Mojo!" name = "lightbug_http" platforms = ["osx-arm64", "linux-64"] -version = "0.1.8" +version = "0.1.9" [tasks] 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"} } diff --git a/recipes/recipe.yaml b/recipes/recipe.yaml index 2f45b965..e65b6beb 100644 --- a/recipes/recipe.yaml +++ b/recipes/recipe.yaml @@ -5,7 +5,7 @@ context: package: name: "lightbug_http" - version: 0.1.8 + version: 0.1.9 source: - path: ../lightbug_http