Hi,

Thanks, Craig, It's working now. It was a bug in my servlet.
The servlet was calling a command to stop a server.
The command expected a newline as a confirmation.
When I added an "out.println("\n");", it worked fine.

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Vasudev Ram
Infosys Technologies Limited
Pune, India
Email : [EMAIL PROTECTED]
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
On a clear day you can see the blue screen of death.
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

> -----Original Message-----
> From: Craig R. McClanahan [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, December 13, 1999 1:40 AM
> To:   [EMAIL PROTECTED]
> Subject:      Re: Q on netstat output after running a servlet
>
> RVASUDEV wrote:
>
> > ]
> > On running a servlet that invokes a UNIX command via the Runtime/Process
> > classes, in some cases, it works fine. In others, the browser (Netscape
> 4.7)
> > gives the message "Connect : host <IP address> contacted. Waiting for
> reply
> > ..."
>
> This would happen if you had some sort of endless loop in your servlet (or
> the
> program that it called), and it never returned.  Put debugging statements
> into
> your servlet to figure out what's going on.
>
> >
> > tcp        0      0  tintin.8080            206.236.140.65.2635
> > CLOSE_WAIT
> > tcp        0      0  *.8080                 *.*
> LISTEN
> >
> > Can anyone tell me what this output means, particularlt the CLOSE_WAIT ?
> >
>
> This is normal and to be expected.
>
> Each request to your servlet occurs on a separate TCP socket connection
> from
> your client (IP address 206.236.140.65 in this case) to the server.  Once
> the
> servlet creates the response and sends it back, the socket connection is
> closed
> at both ends.
>
> When a TCP connection is closed, there is a timeout at the server end to
> make
> sure all the bytes have been sent.  This shows up as CLOSE_WAIT in a
> "netstat"
> report.  They eventually go away, after the timeout period has elapsed.
>
> The LISTEN state means that your servlet runner is still listening for
> subsequent requests.
>
> > Vasudev
> >
>
> Craig McClanahan
>
>

___________________________________________________________________________
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