-
Notifications
You must be signed in to change notification settings - Fork 526
KestrelHttpServer hangs when attacked with multiple requests, e.g. hit F5 multiple times in the browser #34
Comments
I also noticed this issue, and easier repro here. I recently posted a Docker container which enables easy-to-play environment. Here's the repro using this container. note:
I'm not sure whether it's a Kestrel issue or Mono issue (or maybe combination issue). Could anybody tell me it reproduces on Windows host or not? |
Does this still repro? |
@davidfowl let me check against the latest build. I'll post the result in several hours. |
Quick test result: it reproducesI performed the same test using
actually, using this image: https://registry.hub.docker.com/u/muojp/hellovnext-docker/ . And the result is: yes, it reproduces( Test keep-alive-ed requests: work fineTo drill down problems, I switched keep-alive on like Make Kestrel fail -> sleep well -> re-test: imply locksI also tested this on fresh
which is intended to find out whether there are some resource lock issues inside Kestrel:
Result:
This result imply there are some infinite resource locking. netstat after Kestrel fail: imply connection locksI took a snapshot of
serial keep-alive-ed requests: OKSince I tested multiple set of keep-alive request with Kestrel like below and all of them completed fine, I think clean socket shutdown procedure is OK.
My guessSo I guess there are some resource leaking problems reside in Kestrel on non-clean socket shutdown situations or handling error of waiting list for frequent connections. |
With #60:
Ending Kestrel after the run doesn't show any Finalizer warnings. |
@Tragetaschen wow, great work! 😄 🐱 |
Indeed, great work! 👍 |
This is easy to reproduce with the samples - tested with MusicStore and HelloMVC on ubunto 14.04, Kestrel 1.0.0-alpha4 and latest libuv 1.0.0.x, compiled from sources.
The text was updated successfully, but these errors were encountered: