Are you using HTTP/1.1 or HTTP/1.0??

With HTTP/1.1 it might be determining the size of your response so it can
properly encode it before sending.

HTH,
Todd

-----Original Message-----
From: Claude Montpetit [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 15, 2002 2:04 PM
To: [EMAIL PROTECTED]
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 if
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. This
does not seem to be a buffer-size issue as I have been sending huge amounts
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 the
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:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to