----- Original Message ----- From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, February 27, 2004 1:07 AM Subject: cvs commit: jakarta-tomcat-connectors/jk/native2/common jk_worker_ajp13.c
> hgomez 2004/02/27 01:07:23 > > Modified: jk/native2/common jk_worker_ajp13.c > Log: > Fix BR27281, when user stop its browser return 206 instead of 500 > > Revision Changes Path > 1.60 +4 -0 jakarta-tomcat-connectors/jk/native2/common/jk_worker_ajp13.c > > Index: jk_worker_ajp13.c > =================================================================== > RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native2/common/jk_worker_ajp13.c,v > retrieving revision 1.59 > retrieving revision 1.60 > diff -u -r1.59 -r1.60 > --- jk_worker_ajp13.c 24 Feb 2004 08:44:40 -0000 1.59 > +++ jk_worker_ajp13.c 27 Feb 2004 09:07:23 -0000 1.60 > @@ -444,6 +444,10 @@ > s->is_recoverable_error = JK_FALSE; > env->l->jkLog(env, env->l, JK_LOG_ERROR, > "ajp13.service() Error receiving initial post %d %d %d\n", err, errno, attempt); > + > + /* BR #27281 : Should we return HTTP 500 since its the user who stop the sending ? */ > + /* may be not, so return another HTTP code -> use PARTIAL CONTENT, 206 instead */ > + s->status = 206; > return JK_ERR; > } > IMHO, mod_jk2 shouldn't touch the status code in this case (since it can't possibly be sent back to the client). It should leave the status code as whatever Tomcat set it to. > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] >
This message is intended only for the use of the person(s) listed above as the intended recipient(s), and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not an intended recipient, you may not read, copy, or distribute this message or any attachment. If you received this communication in error, please notify us immediately by e-mail and then delete all copies of this message and any attachments. In addition you should be aware that ordinary (unencrypted) e-mail sent through the Internet is not secure. Do not send confidential or sensitive information, such as social security numbers, account numbers, personal identification numbers and passwords, to us via ordinary (unencrypted) e-mail.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]