gate event loop timeout change to 10ms

This commit is contained in:
云风
2013-07-24 13:56:20 +08:00
parent 9ec4267965
commit cb31f144f1

View File

@@ -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) {