From: "Jenya Strokin" <[EMAIL PROTECTED]>
Sent: Thursday, July 18, 2002 7:43 AM
Subject: RE: How to close a response?


> I'm using servlet. But if you know way how to do this from JSP, please
share
> it.))
> This is my method wich called from doGet and doPost:
> If user clicks link twice, browser will get the same screen two times
mixed.
> So, I need synchronized processes. But after that browser will get the
same
> screen one after another. So I need close output after I process first
> request, and second request can not write to output string.

Really?

Interesting.

If the user "clicks twice", then the browser should have terminated its
first request and sent a new one (not that you'd actually know that,
though).

When your server gets two requests it appears that the server is trying to
maintain its connection to the browser and forwards the same socket to both
runs of the servlet.

In reality, however, I don't think that the container should "let you" close
the response stream, at least and not expect it to affect any other running
servlets.

Since the container is responsible for the health of the socket to the
browser, it shoud not let any arbitrary servlet just up and slam it shut on
the browser. That pretty much makes the whole point of the Keep-Alive
connections moot.

If anything, I would almost say this is a bug in Tomcat, and that it
Shouldn't Let This Happen.

Regards,

Will Hartung
([EMAIL PROTECTED])




--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to