Skip to content

Conversation

@lynaghk
Copy link
Contributor

@lynaghk lynaghk commented Apr 13, 2019

This is much faster than calling socket.read() to read byte-by-byte.
I believe this is the same issue raised here: #314

@lynaghk
Copy link
Contributor Author

lynaghk commented Apr 13, 2019

Hello, I didn't see any contribution guidelines but made this fix that I think others may find useful. Let me know if there's anything you'd like me to change about the PR.

Also: Thanks for making such a nice library and sharing it with everyone!

This is much faster than calling `socket.read()` to read byte-by-byte.
I believe this is the same issue raised here: httpswift#314
@Vkt0r
Copy link
Member

Vkt0r commented Apr 15, 2019

Hey, @lynaghk Thanks for taking the time to create this PR and for your kind words ! Is pretty similar to #314 and it was solved in #362 but only for the body and headers.

@Vkt0r Vkt0r self-requested a review April 15, 2019 14:42
Copy link
Member

@Vkt0r Vkt0r left a comment

Choose a reason for hiding this comment

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

LGTM!

@Vkt0r Vkt0r merged commit ef5cbe8 into httpswift:stable Apr 15, 2019
tomieq pushed a commit to tomieq/swifterfork that referenced this pull request Apr 1, 2021
`WebsocketSession.readFrame()` should batch read payload bytes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants