[Cppcms-users] bandwidth throtteling
Brought to you by:
artyom-beilis
|
From: Markus R. <us...@ma...> - 2013-03-18 10:55:06
|
Hello! Is it possible to do some bandwidth throtteling for an asynchronous application? The idea is to drop some data in a stream using SSE when the connection is too slow to send everything. What happens if more data is sent with async_flush_output than the client (connection) can handle. Which part of the system does the buffering in this scenario? A simple approach for the bandwidth throtteling would be to get a number how many async_flush_output are currently unprocessed (e.g. by increment when async_flush_output is registered and decrement inside the callback) - and based on that number - drop data. Is this an useful approach? best regards Markus |