List:Commits« Previous MessageNext Message »
From:ahristov Date:March 27 2007 12:54pm
Subject:PHP mysqlnd svn commit: r264 - trunk/ext/mysqli/mysqlnd
View as plain text  
Author: ahristov
Date: 2007-03-27 12:54:13 +0200 (Tue, 27 Mar 2007)
New Revision: 264

Modified:
   trunk/ext/mysqli/mysqlnd/mysqlnd_ps.c
Log:
Slow down a bit before reading from the socket. This will
slow down network ops a bit, but gives the assurance that
error conditions will be caught. Could be done also with
an INI option (set to connection option), to make it optional.


Modified: trunk/ext/mysqli/mysqlnd/mysqlnd_ps.c
===================================================================
--- trunk/ext/mysqli/mysqlnd/mysqlnd_ps.c	2007-03-27 08:13:05 UTC (rev 263)
+++ trunk/ext/mysqli/mysqlnd/mysqlnd_ps.c	2007-03-27 10:54:13 UTC (rev 264)
@@ -945,6 +945,9 @@
 		  Maybe we can make it automatic by checking what's the value of
 		  max_allowed_packet_size on the server and resending the data.
 		*/
+#if HAVE_USLEEP
+		usleep(120000);
+#endif
 		if ((packet_len = php_mysqlnd_consume_uneaten_data(conn, cmd TSRMLS_CC))) {
 			php_error_docref(NULL TSRMLS_CC, E_WARNING, "There was an error "
 							 "while sending long data. Probably max_allowed_packet_size "

Thread
PHP mysqlnd svn commit: r264 - trunk/ext/mysqli/mysqlndahristov27 Mar