tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claude Montpetit" <>
Subject Re: Socket output stream does not deliver...
Date Thu, 16 May 2002 14:17:06 GMT
I identified the problem. When running Tomcat with JDK1.4, the SaxParser
used (I am still unsure if it uses the JDK's or Tomcat's) does not call the
DefaultHandler implementation until the socket gets closed by the server.

So it is not a Tomcat issue, neither a socket issue. It is a SAX parser


----- Original Message -----
From: "Claude Montpetit" <>
To: <>
Sent: Wednesday, May 15, 2002 5:04 PM
Subject: Socket output stream does not deliver...

> Hi,
> I am working on a servlet that opens a socket to a server and waits for
> incoming data.
> The socket opens and the connection is fine.
> The server sends data using the socket.getOutputStream().
> The server calls flush() on the socket output stream after writing (even
> the actual implementation does nothing ...)
> The problem is that the data sent from the server to the client is only
> received by the client when the output stream is closed by the server.
> does not seem to be a buffer-size issue as I have been sending huge
> of data and it never traverses to the client unless the server closes the
> stream, or the socket.
> So why do I send this here? Because I only get this problem when running
> client in Tomcat 4 with JDK 1.4.
> Everything is fine when running Tomcat 4 with JDK 1.3, or when running the
> client on a non-tomcat environment under JDK 1.4.
> Both the client and the server are running on the same Windows XP machine.
> Anyone has a clue about what's going on?
> Claude
> --
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message