]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
mod_skinny: socket timeout should be set in all cases, not just for blocking
authorNathan Neulinger <nneul@neulinger.org>
Wed, 18 Jun 2014 21:41:38 +0000 (16:41 -0500)
committerNathan Neulinger <nneul@neulinger.org>
Wed, 18 Jun 2014 21:41:38 +0000 (16:41 -0500)
src/mod/endpoints/mod_skinny/mod_skinny.c

index bc35c9b70a61478649b3ed980f44afa06972319f..e2a715baa106302c7e6a09fbd66280fb051912df 100644 (file)
@@ -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");
        }