From 8dabf5194565139df1c7feeaa52627b7a62371a8 Mon Sep 17 00:00:00 2001 From: Nathan Neulinger Date: Wed, 18 Jun 2014 16:41:38 -0500 Subject: [PATCH] mod_skinny: socket timeout should be set in all cases, not just for blocking --- src/mod/endpoints/mod_skinny/mod_skinny.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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"); }