Ah!  That makes sense now!

Thanks a lot for taking the time to explain this to me; I know nothing
about the underlying protocols!

Later,

Dan.
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]
> Sent: Friday, April 12, 2002 12:08 PM
> To: [EMAIL PROTECTED]
> Subject: Re: multiple request handling
>
>
> > Ah! So what happens if your servlet takes a more than a few seconds
> > between accepting the request and issueing the response? Will the
> > browser display the first page it receives, and then then
> overwrite it
> > with each subsequant page it receives?
>
> Ok. I think you need to think about this a bit:
>
> When you make a request this is what happens in terms of sockets.
>
>                           tcp connection
>   user(browser)    -------------------------->  servlet
>
>
> If you make a request to the servlet and then press the refresh
> button before the servlet can respond then the browser simply throws
> away it's end of the original TCP connection, thus you never see the
> response from the first request.
>
> You could see both responses if you opened another window for the
> second response.
>
>
> Clearly there is a one to one mapping between a browser window and a
> TCP connection.
>
> Therefore HTTP requests are always displayed in sequence, with the
> last request you made being the one that is shown.
>
>
> With HTTP/1.0 tcp connections are the same as HTTP connections, with
> HTTP/1.1 there is an abstraction where many HTTP connections can share
> a single TCP connection but the above still holds.
>
>
> Nic Ferrier
>
> ______________________________________________________________
> _____________
> 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

Reply via email to