Well Gokul ,
Thanks for your good response.
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.
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.
So that means is I set Connection : Keep-Alive web server does not close the
socket .
If I am wrong plz explain Gokul.
Thanks n Regards ,
sujoy
----- Original Message -----
From: Gokul Singh <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, January 22, 2001 4:41 PM
Subject: Re: JRun with sendRedirects ???
> ----- Original Message -----
> From: "Sujoy" <[EMAIL PROTECTED]>
>
> > Is the same socket is used by the container or a diff. socket
> > is opened for sendRedirects?
> > What if I want to use the same socket for sendRedirects ?
> > How will I come to know that, does Jrun use the same socket
> > for sendRedirects or not?
>
> HTTP is request/response system. The request is recieved on a socket and
the
> response is sent back on the same socket.
> sendRedirect is also a type of Http Response. So it is also sent on the
same
> socket. In http the server does not initiate any connection. All
connections
> are initiated by the client(browser) so there is no question of opening a
> different socket to sendRedirects.
>
> Maybe you are talking about the new request generated at the client due to
> the redirect response from the server.
> In this case it depends upon the version of HTTP you are using. If both
the
> client and the server support Http 1.1 then they might use Persistent
> Connections, in which multiple requests/responses may be exchanged on the
> same socket. I am not sure what version of Http does Jrun support.
>
>
> > Basically I don't want to close the socket after sendRedirects .
>
> What exactly are you trying to achieve by trying to keep the socket open.
>
>
> Regds,
> Gokul
>
> >
> > Thanks and 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
___________________________________________________________________________
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