Re: ServerSockets - When Is It Closed/Not Connected?
- From: Thomas Weidenfeller <nobody@xxxxxxxxxxxxxxxx>
- Date: Tue, 28 Mar 2006 14:42:58 +0200
Hal Vaughan wrote:
I have a ServerSocket that creates a Socket with ServerSocket.accept(). I
then read data from that Socket's InputStream. I'm sending data to it with
netcat. When I stop netcat,
Stopped, so netcat did send a FIN, or just aborted midway in a TCP connection?
This is the first to check. Did netcat initiate the closing of the connection? If not, your server side just doesn't know that one end of the connection is gone.
/Thomas
--
The comp.lang.java.gui FAQ:
ftp://ftp.cs.uu.nl/pub/NEWS.ANSWERS/computer-lang/java/gui/faq
http://www.uni-giessen.de/faq/archiv/computer-lang.java.gui.faq/
.
- References:
- ServerSockets - When Is It Closed/Not Connected?
- From: Hal Vaughan
- ServerSockets - When Is It Closed/Not Connected?
- Prev by Date: Re: Creating and moving boxes
- Next by Date: How to 'run' a jar file
- Previous by thread: ServerSockets - When Is It Closed/Not Connected?
- Next by thread: Re: ServerSockets - When Is It Closed/Not Connected?
- Index(es):
Relevant Pages
|