[454] in java-interest

home help back first fref pref prev next nref lref last post

NT: Lingering sockets problem

daemon@ATHENA.MIT.EDU (Robert O'Callahan)
Fri Jun 23 01:07:22 1995

Date: Fri, 23 Jun 1995 00:17:59 -0400
To: java-interest@java.sun.com
From: "Robert O'Callahan" <roc+@cs.cmu.edu>

With NT 3.5, I seem to be having trouble with closing sockets: the close()
method seems to have no effect!  When I'm running HotJava or my own
client/server code I accumulate lots of dead "CLOSE_WAIT" connections after
the other side has closed.  Anyone else seen this?

Consider the following program:

import net.*;
class Test {
  public static void main(String argv[]) {
    Socket s = new Socket("majesty.fac", 7);
    s.close();
    Thread.sleep(60000);
  }
}

"netstat" shows that the socket remains "ESTABLISHED" until the process exits!

Someone please tell me I'm being stupid.  I wish the NT sources were
available so I could check.  Also, where is the best place to send questions
like this?
(And while I'm asking questions, when is the NT alpha3 release likely?)

Thanks,
Rob
======================================================================
Robert O'Callahan (roc+@cs.cmu.edu) 1st year CMU SCS PhD
Home page: http://www.cs.cmu.edu/~roc
"This bowl of lukewarm tapioca represents my brain.  Bestow thy flickering
light forever." - Calvin & Hobbes, regarding television

-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post