pengwang7
Results
2
issues of
pengwang7
哈喽, 我想问一下, 在websocket握手的时候,禁用调用libevent 的EV_READ选项, 如果这个时候客户端断掉连接, 应该不能及时的关闭掉连接, 并且 bufferevent_write向一个关闭的fd去写,也是不会触发异常的,这样连接对应的bufferevent是不是就释放不掉了呢?
看了代码中有很多volatile修饰的变量,目的是什么,为了statistics更加准确以及为了使用sofa-pbrpc中提供的原子操作吗? 代码中有这样的注释: // And here we need not lock "_pending_lock" because the "_pending_message_count" is // an volatile value. 请教一下volatile与锁有关系吗?