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
The WebSocket "send" function splits the outgoing buffer in chunks that are 256 bytes large.
When WebSocket is used with SSL, this creates a 256 byte sequence of messages that must be decoded by the client.
This is inefficient in terms of throughput when using the socket to send buffers that are some KB large.
I don't know if this can be avoided at all or at least allow the user to tweak this value to reduce the overhead. I don't understand why this behaviour is needed.
I think that the code that generates the issue is the StreamOutputRange in the Frame structure, that has a 256 bytes buffer that uses in loop:
The basic fix is in e1df68e (will be in 0.8.0). A more complete fix is in #1792, which reduces the number of packets to one. The corresponding follow-up issue is #1791.
The WebSocket "send" function splits the outgoing buffer in chunks that are 256 bytes large.
When WebSocket is used with SSL, this creates a 256 byte sequence of messages that must be decoded by the client.
This is inefficient in terms of throughput when using the socket to send buffers that are some KB large.
I don't know if this can be avoided at all or at least allow the user to tweak this value to reduce the overhead. I don't understand why this behaviour is needed.
I think that the code that generates the issue is the StreamOutputRange in the Frame structure, that has a 256 bytes buffer that uses in loop:
websockets.d
wrapper.d
The text was updated successfully, but these errors were encountered: