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
I'm using the websockets feature to send binary data (image thumbnails) to one or more clients. However I'm noticing that if there is one or more slower clients (connections speed wise) the memory consumption goes up drastically. Till the point the system runs out of it and the process crashes. For reference the code:
What I'm seeing is that the data is committed with asio::post, which is non-blocking. Is there a way to make this blocking? Or can I somehow see the buffer is filling up? What I would like to do is slow down the data rate when the buffer gets to full.
Yes waiting for the other side to ack would be an option ofcourse. I'm just wondering if it's also possible to limit from the server side (preventing logic in clients). What exactly do you mean by asynchronous dispatch? I'm willing to put in work. But am a bit lost in where to start...
Hi,
I'm using the websockets feature to send binary data (image thumbnails) to one or more clients. However I'm noticing that if there is one or more slower clients (connections speed wise) the memory consumption goes up drastically. Till the point the system runs out of it and the process crashes. For reference the code:
What I'm seeing is that the data is committed with asio::post, which is non-blocking. Is there a way to make this blocking? Or can I somehow see the buffer is filling up? What I would like to do is slow down the data rate when the buffer gets to full.
For reference I'm using commit 84ec783
Thanks for any assistance!
The text was updated successfully, but these errors were encountered: