brian 97/01/23 23:45:18
Modified: src mod_cgi.c Log: Reviewed by: [EMAIL PROTECTED] Submitted by: Arthur Smith 516-344-6231 <[EMAIL PROTECTED]> The "reset_timeout" line was inserted in 1.2beta3 to allow large or slow POST/PUT operations. However, it was placed incorrectly so that it only took effect if CGI logging was enabled. The follow patch moves the reset_timeout to the proper location. Revision Changes Path 1.29 +1 -1 apache/src/mod_cgi.c Index: mod_cgi.c =================================================================== RCS file: /export/home/cvs/apache/src/mod_cgi.c,v retrieving revision 1.28 retrieving revision 1.29 diff -C3 -r1.28 -r1.29 *** mod_cgi.c 1997/01/20 04:28:12 1.28 --- mod_cgi.c 1997/01/24 07:45:17 1.29 *************** *** 432,441 **** else { dbsize = len_read; } - reset_timeout(r); memcpy(dbuf + dbpos, argsbuffer, dbsize); dbpos += dbsize; } if (fwrite(argsbuffer, 1, len_read, script_out) < (size_t)len_read) { /* silly script stopped reading, soak up remaining message */ while (get_client_block(r, argsbuffer, HUGE_STRING_LEN) > 0) --- 432,441 ---- else { dbsize = len_read; } memcpy(dbuf + dbpos, argsbuffer, dbsize); dbpos += dbsize; } + reset_timeout(r); if (fwrite(argsbuffer, 1, len_read, script_out) < (size_t)len_read) { /* silly script stopped reading, soak up remaining message */ while (get_client_block(r, argsbuffer, HUGE_STRING_LEN) > 0)