Skip to content

Do you need to cork for sending websocket messages? #1028

Answered by uNetworkingAB
chanon asked this question in Q&A
Discussion options

You must be logged in to vote

Ideally every send should be wrapped in cork but if you don't, there are a few cases where it auto corks either way. So unless you can't easily fit in the lambda's preallocated capture memory, always cork. But you can also just benchmark your solution to find out.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@chanon
Comment options

Answer selected by chanon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants