tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claude Montpetit" <cmontpe...@nertec.com>
Subject Re: Socket output stream does not deliver...
Date Thu, 16 May 2002 12:10:07 GMT

My problem does not involve response issues. There is no output made at all.
The socket I am talking about is not the HTTP socket between tomcat and the
browser. It is an internal socket between the servlet, and another server.
Actually, I just realized that the servlet creates a thread to listen to the
openned socket, if it can bring more lights to this.

----- Original Message -----
From: "Ganey, Todd" <ganeytd@dshs.wa.gov>
To: "'Tomcat Users List'" <tomcat-user@jakarta.apache.org>
Sent: Wednesday, May 15, 2002 5:35 PM
Subject: RE: Socket output stream does not deliver...


> 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:cmontpetit@nertec.com]
> Sent: Wednesday, May 15, 2002 2:04 PM
> To: tomcat-user@jakarta.apache.org
> 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:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:tomcat-user-help@jakarta.apache.org>
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:tomcat-user-help@jakarta.apache.org>
>


--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message