Why not start part 2 as a new thread, then you can return from the doGet or
doPost and the Servlet Engine will close the socket for you.
    (*Chris*)

----- Original Message -----
From: Dongzhou Liao <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 22, 1999 11:51 AM
Subject: close Http connection before the process finish


> Hi,
> We have several different types of client accessing a servlet. The servlet
> has two parts.
> The servlet finish part 1 and send output to the client, and then continue
> with part 2 which
> the clients don't care. Right now I close the ServletOutputStream after
part
> 1.It works with
> web browser which shows the reply page although it shows that the
connection
> still open,
> but it doesn't work for some other clients which wait for the socket
> connection close.
> Anyone  knows how to close the http connection in servlet since closing
the
> output stream
> is not enough for some clients?
> Thanks in advances.
>
> DZ
>
>
___________________________________________________________________________
> 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