[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 0.05 Update [was Re: 0.05]
From: |
Brian Jones |
Subject: |
Re: 0.05 Update [was Re: 0.05] |
Date: |
28 Jan 2003 22:39:54 -0500 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 |
Julian Dolby <address@hidden> writes:
> RedHat 7.3 and 8.0 systems the man page provided for `man 7 socket' claims
> the following:
>
> SO_RCVTIMEO and SO_SNDTIMEO
> Specify the sending or receiving timeouts until
> reporting an error. They are fixed to a protocol
> specific setting in Linux and cannot be read or
> written. Their functionality can be emulated using
> alarm(2) or setitimer(2).
>
> Does `man 7 socket' say something different on your Debian system? That
> was why I disabled those options. As I recall, the code compiled fine
> under Linux but threw errors when it was actually used with the timeout
> option. I will try Eclipse on Jikes RVM without this patch, and let you
> know what happens.
The test in Mauve seems to bare this out, an exception is thrown in
our native code. This led me to discovering I had to wait several
minutes between test runs due to SO_REUSEADDR not being set on the
ServerSocket. Looks like gcj does this by default during 'bind', but
I can't see in the docs where this is how it should be. I added it to
the test helper class and found it didn't work (not supported in
native code). So I added it. Now my question, it doesn't appear that
our native code for these options matches the constant values
expressed in java/net/SocketOptions, so should I create some dummy
defines in javanet.c that use the correct values with things like
#define GCP_SO_REUSEADDR 4
...
case GCP_SO_REUSEADDR:
setsockopt (..., SO_REUSEADDR, ...);
...
Brian
--
Brian Jones <address@hidden>
Re: 0.05 Update [was Re: 0.05], Brian Jones, 2003/01/27
RE: 0.05 Update [was Re: 0.05], Cierniak, Michal, 2003/01/13
Re: 0.05 Update [was Re: 0.05], Julian Dolby, 2003/01/28
- Re: 0.05 Update [was Re: 0.05],
Brian Jones <=