最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

c++ - Is there a way to drain websocket in boost asio? - Stack Overflow

programmeradmin1浏览0评论

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?

发布评论

评论列表(0)

  1. 暂无评论