You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
HTTP2: Race between response body Dispose and request body completion #30393
If the client finishes sending the request body at approximately the same time that it disposes the response body without reading to the end, then there's a race between sending EndStream for the request body and RST_STREAM caused by the dispose. If the RST_STREAM ends up getting sent first, then this is a protocol violation.
@eiriktsarpalis For HttpStress to try to induce this, it would try to do something like this:
Create a duplex stream, send some data, have the server send some data too but don't read it on the client, then (a) Dispose the response body and (b) immediately complete the request body.
Create a duplex stream, send some data, have the server send some data too but don't read it on the client, then (a) Dispose the response body and (b) immediately complete the request body.
@geoffkizer I created such a test case, and was able to consistently reproduce a small percentage of errors with the latest nightly. Confirming however that building off latest master made all errors go away.
Activity
geoffkizer commentedon Jul 27, 2019
@eiriktsarpalis For HttpStress to try to induce this, it would try to do something like this:
Create a duplex stream, send some data, have the server send some data too but don't read it on the client, then (a) Dispose the response body and (b) immediately complete the request body.
eiriktsarpalis commentedon Jul 29, 2019
@geoffkizer I created such a test case, and was able to consistently reproduce a small percentage of errors with the latest nightly. Confirming however that building off latest master made all errors go away.
karelz commentedon Aug 3, 2019
Waiting on merge of dotnet/corefx#39874 to make it into 3.0. Reopening.
The bug was fixed in master (5.0) in PR dotnet/corefx#39834.
Port to release/3.0 is pending in PR dotnet/corefx#39874.
karelz commentedon Aug 9, 2019
Fixed in 3.0 by PR dotnet/corefx#39874 and in master (5.0) in PR dotnet/corefx#39834