-
Notifications
You must be signed in to change notification settings - Fork 524
Always flush headers on first response write (#1202). #1204
Conversation
"", | ||
""); | ||
|
||
flushed.Release(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice 👍
Check AppVeyor before merging. |
using (var server = new TestServer(async httpContext => | ||
{ | ||
httpContext.Response.ContentLength = 12; | ||
await httpContext.Response.WriteAsync("hello, world"); | ||
await flushed.WaitAsync(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add reasonable timeouts to the semaphore Waits?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These calls to WaitAsync() are in the web app on the test. If the web app hangs, the test will not hang. Instead the test will fail when it times out waiting for a response. The response timeout here is 1 minute like for most of our tests.
When the failing test (ThrowingSynchronousConnectionFilterDoesNotCrashServer) is run individually (using |
@pranavkm Are you fine with me merging this? |
3d1e5a4
to
840c96c
Compare
840c96c
to
3c7e7d1
Compare
#1202