add more ridiculous timeout to socket send
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13496 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
595dc9bb8d
commit
49d49737f5
|
@ -683,11 +683,11 @@ SWITCH_DECLARE(switch_status_t) switch_socket_send(switch_socket_t *sock, const
|
||||||
need = req - wrote;
|
need = req - wrote;
|
||||||
status = apr_socket_send(sock, buf + wrote, &need);
|
status = apr_socket_send(sock, buf + wrote, &need);
|
||||||
if (status == SWITCH_STATUS_BREAK || status == 730035) {
|
if (status == SWITCH_STATUS_BREAK || status == 730035) {
|
||||||
if (++to_count > 10000) {
|
if (++to_count > 10000000) {
|
||||||
status = SWITCH_STATUS_FALSE;
|
status = SWITCH_STATUS_FALSE;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
switch_cond_next();
|
switch_yield(10000);
|
||||||
} else {
|
} else {
|
||||||
to_count = 0;
|
to_count = 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue