New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Impossible to run Kemal with reuse_port: true #459
Comments
@vlazar Same issue if port is |
using |
@waghanza I'm not sure what do you mean by |
@vlazar sorry, I think I have to give more details
seems not to work for me, but
works |
Yes, this works because |
@straight-shoota thanks for explanation |
@straight-shoota Thanks for explanation! TIL. I thought with @waghanza example two |
Description
Due to changes in HTTP::Server API in Crystal 0.25.0 and the way Kemal 0.23.0 starts server it's now impossible to run Kemal with
reuse_port: true
.Ref: https://github.com/kemalcr/kemal/pull/452/files#diff-e5663d7073109a4b406e96582b8cb5c2R71
The problem is
listen
now also doesbind_tcp
:Ref: https://github.com/crystal-lang/crystal/blob/7fb783f7afec0a199d6f22ef78aae0f45517068a/src/http/server.cr#L216-L220
Steps to Reproduce
Expected behavior: It is possible to run Kemal with
reuse_port: true
Actual behavior: Unhandled exception: bind: Address already in use (Errno)
Reproduces how often: Always
Versions
Kemal 0.23.0
$ crystal --version
Crystal 0.25.0 (2018-06-20)
LLVM: 5.0.1
Default target: x86_64-apple-macosx
Additional Information
Trying to update TFB to latest Crystal and frameworks here TechEmpower/FrameworkBenchmarks@e6c2f95#diff-7a0f270376d33ada73bacaf95cf345fbL116
TechEmpower/FrameworkBenchmarks#3884
The text was updated successfully, but these errors were encountered: