PR libgcj/11521:
* gnu/java/net/natPlainSocketImplWin32.cc
(bind): Don't use SO_REUSEADDR
From-SVN: r73116
+2003-10-30 Mohan Embar <gnustuff@thisiscool.com>
+
+ PR libgcj/11521:
+ * gnu/java/net/natPlainSocketImplWin32.cc
+ (bind): Don't use SO_REUSEADDR
+
2003-10-30 Mohan Embar <gnustuff@thisiscool.com>
PR libgcj/6652:
jbyteArray haddress = host->addr;
jbyte *bytes = elements (haddress);
int len = haddress->length;
- int i = 1;
if (len == 4)
{
else
throw new ::java::net::SocketException (JvNewStringUTF ("invalid length"));
- // Enable SO_REUSEADDR, so that servers can reuse ports left in TIME_WAIT.
- ::setsockopt(native_fd, SOL_SOCKET, SO_REUSEADDR, (char *) &i, sizeof(i));
-
if (::bind (native_fd, ptr, len) != SOCKET_ERROR)
{
address = host;