On Mon, 2010-09-13 at 19:41 +0200, Mladen Turk wrote: > On 09/13/2010 07:15 PM, Brett Delle Grazie wrote: > > > > Our problem is that in a servlet that retrieves a file that is then sent > > to the client we are receiving a 'flush' message _after_ the > > END_RESPONSE message. On the next request, mod_jk sees this a breach in > > the protocol, closes the socket and results in poor performance and > > missed requests. > > > > > > The workaround would be to drop any flush messages > after the END_RESPONSE check. > > However, this is obvious error of the server side. > END_RESPOSE in AJP protocol reflects the Socket.close() > so any flush (or read or write) on that socket would > throw an exception if the non-AJP protocol was used > inside that servlet/stream. > > Detaching AJP streams from the servlet and using them > as a OutputStream is not very well handled in Tomcat. > I suppose if using APR the entire thing would even crash the JVM. > > Trying to deal with that on mod_jk side would have my strong -1.
And I would agree with that whole heartedly. So I guess the APR AJP connector implementation needs to be reviewed... I am looking but as I'm not familiar with the code any help or pointers would be appreciated. Should I raise a bugzilla bug? Thanks, > > > Regards -- Best Regards, Brett Delle Grazie ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org