|
From: Leif M. <le...@ta...> - 2006-07-19 06:15:49
|
Phillip,
I will go ahead and change the listen backlog back to 1. That
change was part of a
large socket rework. It appeared to work on all platforms I tested.
There is not really
any reason not to allow a backlog of 1. Invalid connections will be
rejected anyways.
This change will be in the next release. But go ahead and make the
change to the
3.2.1 source for your own use.
Thanks for tracking this down.
Cheers,
Leif
Phillip Gussow wrote:
> Hi Leif,
>
> With 3.2.1 I was able to build the binaries without using gcc, but using
> cc. The makefile works like a charm.
>
> The problem however still exists. For some reason the JVM indeed cannot
> connect to the port 32000. I trying from the commandline via 'telnet
> localhost 32000'. I get a connection timeout as well. This does mean
> that it can connect to the designated port. Because when the wrapper is
> not running you get a 'connection refused'.
>
> So for some reason the wrapper does not accept the connection. I took a
> look at the acceptance code for 3.1.2 and for 3.2.1 to see the
> difference. Like I said, my knowledge of C is pretty minimal.
>
> The differences that I could see that might explain this behavior:
> 3.1.2 (old):
> /* Tell the socket to start listening. */
> rc = listen(ssd, 1);
> 3.2.1 (new):
> /* Tell the socket to start listening. */
> rc = listen(ssd, 0);
> I don't know the impact of this change for the OSF1.
>
> I'll see if I can do some changes to see if it impacts anything.
>
> Other people's help is of course highly appreciated :)
>
> Regards,
>
> Phillip
|