mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-23 19:43:09 +00:00
gate event loop timeout change to 10ms
This commit is contained in:
@@ -214,7 +214,7 @@ _cb(struct skynet_context * ctx, void * ud, int type, int session, uint32_t sour
|
||||
|
||||
assert(type == PTYPE_RESPONSE);
|
||||
struct mread_pool * m = g->pool;
|
||||
int connection_id = mread_poll(m,100); // timeout : 100ms
|
||||
int connection_id = mread_poll(m,10); // timeout : 10 ms
|
||||
if (connection_id >= 0) {
|
||||
int id = g->map[connection_id].uid;
|
||||
if (id == 0) {
|
||||
|
||||
Reference in New Issue
Block a user