Is there way to enfore HTTPServletResponse to close the socket
From: Naresh Agarwal (nagarwal_at_informatica.com)
Date: 05/29/04
- Next message: Gordon Beaton: "Re: Java Server Socket & C++ Client Socket"
- Previous message: Rajesh: "Java Server Socket & C++ Client Socket"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 29 May 2004 01:49:49 -0700
Hi
I want HTTPServletResponse to *close* the socket after sending the
response. For this I'm closing the OutputStream after writing the
data. But still socket is not closed and client keeps on waiting to
read data from socket.
And surprisingly this happens only if I use multipart/related in
Content-Type in the response.
Is there way to enfore HTTPServletResponse to close the server socket?
Also, is there any relation between setConentLength header of
HTTPServletResponse and whether the server will "keep-alive" the
socket connection?
thanks,
Naresh
- Next message: Gordon Beaton: "Re: Java Server Socket & C++ Client Socket"
- Previous message: Rajesh: "Java Server Socket & C++ Client Socket"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|