From 4ea930c8443c8ee5e866bb55e4e64e724224c95e Mon Sep 17 00:00:00 2001 From: mom040267 Date: Tue, 22 Apr 2014 22:10:19 +0000 Subject: [PATCH] Issue 123 --- src/apps/relay/ns_ioalib_engine_impl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/apps/relay/ns_ioalib_engine_impl.c b/src/apps/relay/ns_ioalib_engine_impl.c index 5d99cdac..1b5712e0 100644 --- a/src/apps/relay/ns_ioalib_engine_impl.c +++ b/src/apps/relay/ns_ioalib_engine_impl.c @@ -2656,7 +2656,7 @@ static void socket_input_handler_bev(struct bufferevent *bev, void* arg) { size_t cycle = 0; - while (!ioa_socket_tobeclosed(s) && (cycle++<1024)) { + while (!ioa_socket_tobeclosed(s) && (cycle++<64)) { if (socket_input_worker(s) <= 0) break; } @@ -3220,7 +3220,7 @@ int ioa_socket_tobeclosed(ioa_socket_handle s) } if(s->done) { - TURN_LOG_FUNC(TURN_LOG_LEVEL_INFO, "!!! %s: ceck on already closed socket: 0x%lx, st=%d, sat=%d\n",__FUNCTION__,(long)s,s->st,s->sat); + TURN_LOG_FUNC(TURN_LOG_LEVEL_INFO, "!!! %s: check on already closed socket: 0x%lx, st=%d, sat=%d\n",__FUNCTION__,(long)s,s->st,s->sat); TURN_LOG_FUNC(TURN_LOG_LEVEL_INFO, "!!! %s socket: 0x%lx was closed\n", __FUNCTION__,(long)s); return 1; }