|
|
|
|
|
by kuschku
3543 days ago
|
|
Length negotiation has been discussed for years, but it’s not that easy. Imagine user A negotiates a length fo 1024 bytes with the server, user B negotiates a length of 2048 bytes. User B sends a message via the server to user A. What happens? |
|
However reading their site more carefully I suppose their stated goal technically is to only provide extensions to the protocol.
So the situation you describe already happens, user A has 512 bytes to send to the server, but the server has 512-prefix_length bytes to send to B. This is a flaw in the original protocol and the currently accepted solution is to truncate server-side(what to do is not stated explicitly, though it is implied that you probably shouldn't wrap messages). But fixing it is probably out of scope.