[Top][All Lists]

[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: lionel_debroux at yahoo dot fr
Subject: [Bug classpath/35520] Server socket port kept bound even after the VM ends
Date: 29 Mar 2010 10:11:46 -0000

------- Comment #3 from lionel_debroux at yahoo dot fr  2010-03-29 10:11 -------
I can confirm the problem.

> If so, GNU Classpath should also enable SO_REUSEADDR for ServerSocket.
Seconded. Indeed, some real-world code, such as the reference implementation
for JMX, depends on Sun's classpath implementation enabling SO_REUSEADDR by
default on Linux and Solaris, even though "When a ServerSocket is created the
initial setting of SO_REUSEADDR is not defined." (

While changing the code of some open-source applications is possible, the only
way for GNU Classpath to become compatible with all versions of applications
that depend on SO_REUSEADDR being enabled by default, is to implement the same
behaviour as that of Sun's Classpath implementation.
The previous commenter mentioned that it may be more iffy for Windows
platforms, but as far as most *nix platforms are concerned, it's a matter of
adding "setReuseAddr(true);" at the end of the argument-less ServerSocket()


lionel_debroux at yahoo dot fr changed:

           What    |Removed                     |Added
                 CC|                            |lionel_debroux at yahoo dot
                   |                            |fr


reply via email to

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