The following reply was made to PR mod_jserv/4790; it has been noted by GNATS.
From: Ben Kelley <[EMAIL PROTECTED]> To: [EMAIL PROTECTED], [EMAIL PROTECTED] Cc: Subject: Re: mod_jserv/4790: ajp11: cannot scan servlet headers in mod_jserv.log Date: Fri, 30 Jul 1999 13:08:32 +1000 Not sure if replying to this mail will go anywayere, but I have more information. I can reproduce the bug, and have a workaround. The chain of functions is convoluted, but I can now easily reproduce the problem. First, you need a servlet that returns a "Last-Modified" header. The idea here is to produce a 304 response code. Telnet to the web server on the appropriate port, and type "GET /servlet/uri HTTP" (press enter twice) where /servlet/uri is the URI of your servlet. Copy the date from the Last-Modified line. Now telnet again, and type: GET /servlet/uri HTTP If-Modified-Since: date (press enter twice) Here, "date" is the date you copied from the Last-Modified header on the previous request. This should produce the error. (If the date you supply here is less than the date returned previously, you get the correct output from the servlet.) Basically, the function ap_meets_conditions (in Apache 1.3.6 core code) correctly decides that it should send a 304 response. This 304 gets returned to ap_scan_script_header_err_core (in Apache 1.3.6 core code). This gets returned to ajpv11_handler (in Jserv 1.0 code). Oddly, ajpv11_handler barfs if it gets a non-zero response back. The function ajpv11_handler is getting a 304 back, and so it is giving this error message. This is weird. I suspect perhaps it shouldn't die if it gets anything non-zero back. IMHO, 304 isn't an error condition. As a workaround, if you stop your servlet sending a "Last-Modified" header, the problem goes away. - Ben Kelley. [EMAIL PROTECTED] wrote: > Thank you very much for your problem report. > It has the internal identification `mod_jserv/4790'. > The individual assigned to look at your > report is: jserv. > > >Category: mod_jserv > >Responsible: jserv > >Synopsis: ajp11: cannot scan servlet headers in mod_jserv.log > >Arrival-Date: Thu Jul 29 01:10:01 PDT 1999 -- Ben Kelley - [EMAIL PROTECTED] Software Engineer - Equities IT - Warburg Dillon Read Attempting a join Too much from, not enough where Cartesian product (Ron Pyke) Warburg Dillon Read - Sydney - Australia - Earth etc etc Ph +61 2 9324 2382 Fax +61 2 9324 2400 This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments.