[Freeswitch-svn] [commit] r8818 - freeswitch/trunk/src
Freeswitch SVN
mikej at freeswitch.org
Mon Jun 23 11:56:24 EDT 2008
Author: mikej
Date: Mon Jun 23 11:56:24 2008
New Revision: 8818
Modified:
freeswitch/trunk/src/switch_apr.c
Log:
attempt to fix MODEVENT-25 (WSAWOULDBLOCK error on socket send in windows)
Modified: freeswitch/trunk/src/switch_apr.c
==============================================================================
--- freeswitch/trunk/src/switch_apr.c (original)
+++ freeswitch/trunk/src/switch_apr.c Mon Jun 23 11:56:24 2008
@@ -564,9 +564,10 @@
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)) {
+ while ((wrote < req && status == SWITCH_STATUS_SUCCESS) || (need == 0 && status == SWITCH_STATUS_BREAK) || status == 730035) {
need = req - wrote;
- if ((status = apr_socket_send(sock, buf + wrote, &need)) == SWITCH_STATUS_BREAK) {
+ status = apr_socket_send(sock, buf + wrote, &need);
+ if (status == SWITCH_STATUS_BREAK || status == 730035) {
if (++to_count > 10000) {
status = SWITCH_STATUS_FALSE;
break;
More information about the Freeswitch-svn
mailing list