----- Original Message -----
From: "Sujoy" <[EMAIL PROTECTED]>
> Actually, I am working on performance issues .
> In my servlet there are so many redirects so I was
> wondering whether JRun closes the socket conn.
> after the redirection.
I am not sure about JRun, but your experience suggests that it honours
Keep-Alive.
> Right now I have written a socket and used the
> req. header Connection : Keep-Alive(HTTP/1.0 only ) .
> And used the same client socket for next request .
> It worked fine. But the problem is, when you use Connection : Keep-Alive
> req. header the web-server does not send null as a termination of the
> response string
> so my loop doesnot get terminated. And this means I have to set the
content
> length header and check that too.
That is correct. Just take care that you might generate a response which
might not have body. In that case you will not have a content-length header.
Regds,
Gokul
> Thanks n Regards ,
> sujoy
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html