----- 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

Reply via email to