----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
All,
We have a mixed environment with Jserv and Apache running on separate boxes
with IBM's jdk. The problem we are having is that the input stream is not being
fully read - thus making POST requests arbitrarily successful. We first noticed
the problem because we have own logic for parsing mutlipart requests. We found
that simple reads to the input stream, regardless of filtering, were hanging
the vm. Simple checks to stream (using ready()) showed that sometimes it simply
was not ready. Our fix was a timer thread that would cycle check-readiness then
read if ready.
It turns out that we are now seeing the same behavior in normal POST requests
(form-urlencoded). For normal POST requests we are relying on Jserv's
JServConnection.readData() which in turn relies on HttpUtils to handle the
servlet input stream. Should I assume that HttpUtils in the Sun's and Jserv's
JSDK are calling read without any timer/ready logic? It sorta makes sense that
most people would not see this if they are using Apache and Jserv on the same
box.
Any help here?
John Carnahan
> >
> > Does anyone know why the POST method is not being supported ?????
> >
>
> You need to read the HTTP spec and properly implement the POST method. If
> you look at the source code in Apache JServ which deals with this, you will
> see what it is expecting.
>
> -jon
>
> --
> --------------------------------------------------------------
> Please read the FAQ! <http://java.apache.org/faq/>
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Archives and Other: <http://java.apache.org/main/mail.html>
> Problems?: [EMAIL PROTECTED]
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]