----------------------------------------------------------------
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!!!
----------------------------------------------------------------
From: jon * <[EMAIL PROTECTED]>
> > Simply non-responsding to a post times out and generates another page.
> > The page I am receiving is generated immediately with no time out.
>
> I don't know. You should use Netscape for your testing. It doesn't try to
do
> shitty stuff like that.
Netscape, Opera, MSIE 4/5 all behave the same or close to it. The problem is
that the server isn't sending the data.
Here's another clue:
>From JServConnection.java...
// All done close the streams and the connection
try {
if (servlet_writer != null)
servlet_writer.close();
}
1 out.close();
2 if(client!=null) client.close();
} catch(IOException ignored) {
if (!JServ.TURBO && JServ.log.active)
JServ.log.log(CH_DEBUG, "Ignored IOException.");
}
If I put a breakpoint on line 1 it will always work. If I put a breakpoint
on line 2 and not 1 it will always fail. It looks to me like the output
socket is this particular case is not flushing the data onto Apache. Hitting
the breakpoint changes the timing and causes the socket to properly flush.
If I add out.write(0); before the close it will always work. Adding
out.flush() before out.close() makes no difference. This may be a JVM or
Winsock bug. It looks to me like I have data waiting to be flushed in the
socket and the socket doesn't know that it is there. Writing the extra null
makes the socket find all of the data and send it on it's way.
Has JServ set any funny options on the tcp sockets?
My Winsock32.dll is 4.10.1656 and my JVM is 5.00.3229. I'll go search the MS
site for possible fixes.
Jon Smirl
[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]