sas Mon Jan 15 06:48:15 2001 EDT Modified files: /php4/sapi/aolserver aolserver.c Log: Try harder to push data through the wire. I just learned that the AOLserver module will be used for a 100k users webmail service. Wheee! Index: php4/sapi/aolserver/aolserver.c diff -u php4/sapi/aolserver/aolserver.c:1.54 php4/sapi/aolserver/aolserver.c:1.55 --- php4/sapi/aolserver/aolserver.c:1.54 Tue Jan 2 14:49:27 2001 +++ php4/sapi/aolserver/aolserver.c Mon Jan 15 06:48:14 2001 @@ -22,7 +22,7 @@ * - CGI/1.1 conformance */ -/* $Id: aolserver.c,v 1.54 2001/01/02 22:49:27 zeev Exp $ */ +/* $Id: aolserver.c,v 1.55 2001/01/15 14:48:14 sas Exp $ */ /* conflict between PHP and AOLserver headers */ #define Debug php_Debug @@ -93,15 +93,22 @@ static int php_ns_sapi_ub_write(const char *str, uint str_length) { - int sent_bytes; + int n; + uint sent = 0; NSLS_FETCH(); - sent_bytes = Ns_ConnWrite(NSG(conn), (void *) str, str_length); + while (str_length > 0) { + n = Ns_ConnWrite(NSG(conn), (void *) str, str_length); - if (sent_bytes != str_length) - php_handle_aborted_connection(); + if (n == -1) + php_handle_aborted_connection(); + + str += n; + sent += n; + str_length -= n; + } - return sent_bytes; + return sent; } /* @@ -211,7 +218,7 @@ NSLS_FETCH(); php_info_print_table_start(); - php_info_print_table_row(2, "SAPI module version", "$Id: aolserver.c,v 1.54 2001/01/02 22:49:27 zeev Exp $"); + php_info_print_table_row(2, "SAPI module version", "$Id: aolserver.c,v 1.55 +2001/01/15 14:48:14 sas Exp $"); php_info_print_table_row(2, "Build date", Ns_InfoBuildDate()); php_info_print_table_row(2, "Config file path", Ns_InfoConfigFile()); php_info_print_table_row(2, "Error Log path", Ns_InfoErrorLog()); -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]