From: Nathan Neulinger Date: Wed, 18 Jun 2014 21:41:38 +0000 (-0500) Subject: mod_skinny: socket timeout should be set in all cases, not just for blocking X-Git-Tag: v1.5.13~123 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8dabf5194565139df1c7feeaa52627b7a62371a8;p=thirdparty%2Ffreeswitch.git mod_skinny: socket timeout should be set in all cases, not just for blocking --- diff --git a/src/mod/endpoints/mod_skinny/mod_skinny.c b/src/mod/endpoints/mod_skinny/mod_skinny.c index bc35c9b70a..e2a715baa1 100644 --- a/src/mod/endpoints/mod_skinny/mod_skinny.c +++ b/src/mod/endpoints/mod_skinny/mod_skinny.c @@ -1725,9 +1725,11 @@ static void *SWITCH_THREAD_FUNC listener_run(switch_thread_t *thread, void *obj) switch_socket_opt_set(listener->sock, SWITCH_SO_NONBLOCK, TRUE); #else switch_socket_opt_set(listener->sock, SWITCH_SO_NONBLOCK, FALSE); +#endif + /* 200 ms to allow reasonably fast reaction on digit timeout */ switch_socket_timeout_set(listener->sock, 200000); -#endif + if (listener->profile->debug > 0) { skinny_log_l_msg(listener, SWITCH_LOG_DEBUG, "Connection Open\n"); }