Hi Nic,

I'm aware it looks stupid to go through all this mess just to close the
connection
in the face of a request, but our test setup already uses servlets and JSP's
and we'd like to avoid "special cases" as much as possible (every "special
case"
is yet another hassle to maintain and use, especially when we turn
multi-platform sometime soon).

We want this test because we discovered by accident that our product will
loop on 97% CPU when it tries to connect to a server and the server
immieidetly
shuts the connection down (familiar problem to anyone who ever writen some
system-level server stuff, already fixed).  Since our phylosophy is to turn
each bug
into a (automatic) test case we want to add this to our regression tests.

I'd suspect that a non-HTTP servlet might help to circumnavigate around the
automatic handling of HTTP connections, but I don't see how can I setup such
a servlet, if at all.  Any ideas?

Thanks,

--Amos Shapira
WebCollage

> -----Original Message-----
> From: Nic Ferrier [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, June 25, 2000 5:46 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Shutdown of connection
>
>
> >Thanks for the pointer, but no cigar.
> >As I suspected before testing, it still returns something like:
> >HTTP/1.0 204 No content
> >Date: Sun, 25 Jun 2000 12:43:35 GMT
> >Server: Microsoft-IIS/5.0 ServletExec/3.0
> >Content-Type: text/html; charset=iso-8859-1
> >While I'd like to avoid even the first "H" on the first line.
>
> This is under the control of the servlet container.
>
> Read my post from a couple of weeks back about how the servlet
> handles close()s.
>
> The only thing you could do would be to:
>
>    System.exit();
>
> But since you are using an IIS tie in that probably won't work either
> - the servlet container might shutdown but IIS will probably handle
> the response.
>
> Why on earth do you want to do this? It seems a bit mad.
>
>
> 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