-
Notifications
You must be signed in to change notification settings - Fork 523
Running ApacheBench against empty RC1 template using kestrel results in timeout #605
Comments
@christiansparre Are you sure the application successfully binds to port 5000? Have you tried running it as an administrator? |
Yes. It's running as admin and I can get to it from a browser and PostMan etc. :) |
What if you use UPDATE: Might be an ab bug? http://stackoverflow.com/questions/7938869/ab-is-erroring-out-with-apr-socket-recv-connection-refused-61/8825278#8825278 |
After trying a bit more I have had success with this example: https://github.com/roydukkey/moist/tree/stackoverflow-34615917 It uses rc2-* It is configured for http://localhost:1234 but that does not work. With http://127.0.0.1:1234 works as expected in ApacheBench, yay! :) I still have not had success with RC1, have tried 127.0.0.1 also, netstat reports dnx.exe listening on the right port. So something changed in the current RC2 builds, but I can still not make localhost work. |
I'm going to dig a bit into this, from what I can see when it works I hit this method KestrelHttpServer/src/Microsoft.AspNetCore.Server.Kestrel/Http/TcpListenerSecondary.cs Line 20 in b062f85
But not otherwise, have not looked at the kestrel code before so I'm a bit lost as to where it all starts. But I'll nose around a bit :) |
Localhost binds to [::1] right now, not 127.0.0.1. |
@Tratcher thank you, that explains it I think. At least for RC2, RC1 still does not work either way. |
After having the same problem (but on port localhost:80), trying with the 127.0.0.1 worked for me. |
Don't think ab resolves localhost correctly |
Hi, I'm having trouble doing some simple benchmarks using ApacheBench on a project we are experimenting with.
I'm on Windows 7 with rc1-update1.
When trying to use ApacheBench the tool fails with the below message, I tried creating a new project using the empty RC1 template, this also failed.
When using IISExpress from with VS it works fine. I have tried using different ports with kestrel with no luck. I have tried with the latest available RC2 builds with no luck. I tried the ab -k switch (KeepAlive) as I was told that might be the issue.
Any idea what might be causing this?
The text was updated successfully, but these errors were encountered: