[Freeswitch-svn] [commit] r13496 - freeswitch/trunk/src

FreeSWITCH SVN anthm at freeswitch.org
Thu May 28 16:31:27 PDT 2009


Author: anthm
Date: Thu May 28 18:31:27 2009
New Revision: 13496

Log:
add more ridiculous timeout to socket send

Modified:
   freeswitch/trunk/src/switch_apr.c

Modified: freeswitch/trunk/src/switch_apr.c
==============================================================================
--- freeswitch/trunk/src/switch_apr.c	(original)
+++ freeswitch/trunk/src/switch_apr.c	Thu May 28 18:31:27 2009
@@ -683,11 +683,11 @@
 		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;
 		}



More information about the Freeswitch-svn mailing list