bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug classpath/35520] Server socket port kept bound even after the VM en


From: kaz at maczuka dot gcd dot org
Subject: [Bug classpath/35520] Server socket port kept bound even after the VM ends
Date: 10 Mar 2008 09:02:41 -0000


------- Comment #1 from kaz at maczuka dot gcd dot org  2008-03-10 09:02 -------
Using setReuseAddress(true) solves this problem.  It may be
correct that the binding of the server socket fails if some
connection in TIME_WAIT state exists.

Kaffe's old original native code used the SO_REUSEADDR option.
The famous netcat also uses the SO_REUSEADDR option. But GNU
Classpath's ServerSocket does not use it unless explicitly
specified.

OK. That is reasonable.

But how about Sun's JDK?  Tests show that it behaves as though
the SO_REUSEADDR option were used, even if we explicitly use
setReuseAddress(false).


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35520





reply via email to

[Prev in Thread] Current Thread [Next in Thread]