]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add more ridiculous timeout to socket send
authorAnthony Minessale <anthony.minessale@gmail.com>
Thu, 28 May 2009 23:31:27 +0000 (23:31 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Thu, 28 May 2009 23:31:27 +0000 (23:31 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13496 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_apr.c

index 73d0197e19864851bea7b96605557ed7f2f26a31..a3240e4dd4522734db39be57aa3c778384481c24 100644 (file)
@@ -683,11 +683,11 @@ SWITCH_DECLARE(switch_status_t) switch_socket_send(switch_socket_t *sock, const
                need = req - wrote;
                status = apr_socket_send(sock, buf + wrote, &need);
                if (status == SWITCH_STATUS_BREAK || status == 730035) {
-                       if (++to_count > 10000) {
+                       if (++to_count > 10000000) {
                                status = SWITCH_STATUS_FALSE;
                                break;
                        }
-                       switch_cond_next();
+                       switch_yield(10000);
                } else {
                        to_count = 0;
                }