qicosmos / rest_rpc

modern C++(C++11), simple, easy to use rpc framework
MIT License
1.66k stars 365 forks source link

订阅发布模式数据缓存问题 #70

Open chisheng opened 2 years ago

chisheng commented 2 years ago

祁工: 我看下了订阅发布模式的实现方式,如果发布者发布速度远大于消费者,数据会缓存在链接里的数据队列writequeue,时间久了会把内存耗光的吧,能增加每个链接发送缓存队列的最大值限制么?

qicosmos commented 2 years ago

之前有个https://github.com/qicosmos/rest_rpc/pull/25 pr加了上限。 不过还没更新,我关注一下,希望@LeoYang-Chuese 能更新一下,或者我晚点加一下。

LeoYang-Chuese commented 2 years ago

耽搁了,我近期抽时间更一下。