By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,739 Members | 2,014 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,739 IT Pros & Developers. It's quick & easy.

Is there way to enfore HTTPServletResponse to close the socket

P: n/a

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?
Jul 17 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.