-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Rocket not responding well to siege #541
Comments
This is how you can get Ubuntu: https://packages.ubuntu.com/search?keywords=siege |
How are you running the Rocket application? Are you sure you're running it on port 8000? Note that Rocket defaults to port 80 when the production environment is enabled, which is what Rocket should be running under when benchmarked. |
I'm running it via the executable generated with I tried with |
I think I've had the same issue. Networking is not my strong point so I could be completely wrong, but I think what's happening is when you set I just tested my own Rocket app, and if I have it listening on I just spent way too much time digging through Rocket, Hyper, and the standard library, but everything looks like it should properly return both IPv4 and IPv6 addresses when resolving |
It sounds like this is really #209 in disguise. Do you agree? |
Yeah, that looks the same to me. This was nagging me so I dug further, and I think I found what I think is the root cause: When binding to |
@marcusball That's right. See my comments in #209. Looks like everything is working as expected, even if it's not as intuitive as we'd like. See #209 for why we can't do any better at the moment. Closing this out for these reasons. |
Sounds good to me. Thanks for the clarification, guys! |
Versions
Dependencies
OS
Description
The "hello world" Rocket application doesn't respond to requests made by the "siege" Linux program (a program used to run benchmarking tests); instead, I get an
socket: unable to connect sock.c:249: Connection refused
error. This benchmarking I'm doing is with a lot of different platforms and technologies, like NodeJS, several different Python frameworks, and the only one failing to respond is Rocket. However, if I request withcurl
orrequests
(the Python library), it works fine. So I think it might be an issue with the way the socket is attempted to get opened (not sure though).How to replicate
$ siege -v -b -p -g http://localhost:8000
(provided that the app is running underlocalhost:8000
)Expected result
There should be a brief description of the benchmarking session with 100% of the requests correctly responded
Actual result
Thanks!
The text was updated successfully, but these errors were encountered: