I am using asio/beast for tcp ssl connections. Calling async_read in a loop inside corouties.
In situations when I have N packets on websocket I need to do N async_reads to drain the websocket. This sometimes creates over-scheduling bottleneck for me when throughput is high. Is there a way to copy all data available on the ws with single read, or any other way to avoid over-scheduling?
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745650207a4638216.html
评论列表(0条)