David Engberg wrote:
>
> We never found a way to do this since both Apache and JServe enforce valid
> HTTP, which requires the full request to be received before you can send
> any sort of HTTP response.
>
According to rfc2616:
8.2.2 Monitoring Connections for Error Status Messages
An HTTP/1.1 (or later) client sending a message-body SHOULD monitor
the network connection for an error status while it is transmitting
the request. If the client sees an error status, it SHOULD
immediately cease transmitting the body.
So HTTP 1.1 doesn't actually require that the entire request be
received. (a close on the socket is a valid response) OTOH,
if the Apache/JServ combo doesn't allow you to take advantage of
that, then I guess it doesn't really matter what the spec says.
Have you tried first closing and flushing the _output_ stream
back to the client? I don't have any idea if that would work for
your particular engine setup, but it might be worth a try.
-cks
--
----------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]