Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Aug 1998 09:00:11 -0600
From:      Nate Williams <nate@mt.sri.com>
To:        Mark Diekhans <markd@Grizzly.COM>
Cc:        freebsd-java@FreeBSD.ORG, java-port@FreeBSD.ORG
Subject:   Re: ServerSocket broken in jdk1.1.6.V98-7-21
Message-ID:  <199808141500.JAA21482@mt.sri.com>
In-Reply-To: <199808141227.FAA04877@osprey.grizzly.com>
References:  <199808141227.FAA04877@osprey.grizzly.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> ServerSocket no longer works correctly in the 1.1.6.V98-7-21.  It appears
> not to set SO_REUSEADDR.

But it is setting it in the VM.  I just verified this.

    setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, (char*)&arg, 4);
 
> Thus attempts to reopen a server socket fails
> until the kernel decides to recycle the port.  This worked correctly
> in 1.1.5.V98-2-8.  The enclosed program demonstrates the problem.

I agree, but I don't know what's going on.

Here's the output of ktrace:
  2235 java     CALL  setsockopt(0x6,0xffff,0x204,0xefbfd3f8,0x4)
  2235 java     RET   setsockopt -1 errno 42 Protocol not available

Hmm, that 0x204 should be 0x4.........

It turns out that I had the attempts at a bugfix by a java member in the
build tree, and I shouldn't have.  I just ripped the code out, and
things appear to work fine now.

I guess that means I'll have to re-roll the release, but I don't know
when I'll get time.  (I'm busy today through the weekend, and into early
next week).  My 'hack' fix isn't a real release, and although it doesn't
take alot of time to build a test release, doing it 'correctly' takes a
bit a time.

> Is there a new release planned?

There is now.  Thanks for pointing this out!




Nate

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-java" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199808141500.JAA21482>