]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-3308 --resolve
authorAnthony Minessale <anthm@freeswitch.org>
Mon, 23 May 2011 18:20:33 +0000 (13:20 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Mon, 23 May 2011 18:20:33 +0000 (13:20 -0500)
src/switch_apr.c

index 495e0605a814f8a64480908451ee56b274c95af8..fe7442b57ffb6a2eee301dbddd99cc4d5168aba6 100644 (file)
@@ -697,10 +697,10 @@ SWITCH_DECLARE(switch_status_t) switch_socket_send(switch_socket_t *sock, const
        switch_size_t req = *len, wrote = 0, need = *len;
        int to_count = 0;
 
-       while ((wrote < req && status == SWITCH_STATUS_SUCCESS) || (need == 0 && status == SWITCH_STATUS_BREAK) || status == 730035) {
+       while ((wrote < req && status == SWITCH_STATUS_SUCCESS) || (need == 0 && status == SWITCH_STATUS_BREAK) || status == 730035 || status == 35) {
                need = req - wrote;
                status = apr_socket_send(sock, buf + wrote, &need);
-               if (status == SWITCH_STATUS_BREAK || status == 730035) {
+               if (status == SWITCH_STATUS_BREAK || status == 730035 || status == 35) {
                        if (++to_count > 10000000) {
                                status = SWITCH_STATUS_FALSE;
                                break;