Skip to content

No end stream on ws connect and flush every message - #73762

Merged
greenEkatherine merged 10 commits into
dotnet:mainfrom
greenEkatherine:fix-end-stream-and-flush
Aug 12, 2022
Merged

greenEkatherine merged 10 commits into
dotnet:mainfrom
greenEkatherine:fix-end-stream-and-flush

Conversation

@greenEkatherine

Copy link
Copy Markdown
Contributor

The second attempt to fix #72301

End stream should not be sent on the connect request, but it should be flushed instead.
Also, for web sockets we should flush every message immediately.

To test the change, I run all existing tests for 1.1 against local Kestrel server with WS over HTTP/2 support. All tests passed except CloseStatusDescription checks - it seems to be changed on the server side. Now server adds "Server received" and status at the beginning

@ghost

ghost commented Aug 11, 2022

Copy link
Copy Markdown

Tagging subscribers to this area: @dotnet/ncl
See info in area-owners.md if you want to be subscribed.

Issue Details

The second attempt to fix #72301

End stream should not be sent on the connect request, but it should be flushed instead.
Also, for web sockets we should flush every message immediately.

To test the change, I run all existing tests for 1.1 against local Kestrel server with WS over HTTP/2 support. All tests passed except CloseStatusDescription checks - it seems to be changed on the server side. Now server adds "Server received" and status at the beginning

Author: greenEkatherine
Assignees: -
Labels:

area-System.Net.Http

Milestone: -

@greenEkatherine

Copy link
Copy Markdown
Contributor Author

/azp run runtime-libraries-coreclr outerloop

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@ghost ghost added the needs-author-action An issue or pull request that requires more info or actions from the author. label Aug 11, 2022
@greenEkatherine greenEkatherine added this to the 7.0.0 milestone Aug 11, 2022
Co-authored-by: Natalia Kondratyeva <[email protected]>
@ghost ghost removed the needs-author-action An issue or pull request that requires more info or actions from the author. label Aug 11, 2022
@greenEkatherine

Copy link
Copy Markdown
Contributor Author

/azp run runtime-libraries-coreclr outerloop

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@stephentoub stephentoub left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not to sound like a broken record, but where are the tests?

@greenEkatherine

Copy link
Copy Markdown
Contributor Author

Not to sound like a broken record, but where are the tests?

Sorry, I'm again struggling to simulate "normal server" on the loopback server, so I ended up with manual testing on the local server. I tried to fix the test that should indicate closed connection though.

@greenEkatherine

Copy link
Copy Markdown
Contributor Author

/azp run runtime-libraries-coreclr outerloop

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@greenEkatherine

Copy link
Copy Markdown
Contributor Author

I opened an issue for tests #73849

@CarnaViire CarnaViire left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Katya Sokolova and others added 2 commits August 12, 2022 16:47
@greenEkatherine

Copy link
Copy Markdown
Contributor Author

/azp run runtime-libraries-coreclr outerloop

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@greenEkatherine

Copy link
Copy Markdown
Contributor Author

Failures in the outeloop are unrelated

@greenEkatherine
greenEkatherine merged commit 30bec96 into dotnet:main Aug 12, 2022
@greenEkatherine
greenEkatherine deleted the fix-end-stream-and-flush branch August 12, 2022 17:28
@ghost ghost locked as resolved and limited conversation to collaborators Sep 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

WebSockets over HTTP/2 issues

4 participants