From cb31f144f12dd30aa8997cfe4039885ee0d78d9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=91=E9=A3=8E?= Date: Wed, 24 Jul 2013 13:56:20 +0800 Subject: [PATCH] gate event loop timeout change to 10ms --- gate/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gate/main.c b/gate/main.c index 388d0407..5216f46b 100644 --- a/gate/main.c +++ b/gate/main.c @@ -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) {