[Spread-users] spread-5.0.0rc1 : Solaris setsockopt issue

John Lane Schultz jschultz at spreadconcepts.com
Thu Dec 8 09:13:10 EST 2016


Martin,

Yes, I am vaguely aware that SunOS expects different sized parameters for options to setsockopt than other platforms but I have no SunOS instance with which to test readily available.

My hope was that SunOS would have changed to allow larger than expected parameters (e.g. - int) so that the same code was more cross platform.

If you could take a crack at modifying and testing that bit of code and post the diff here, then I’d appreciate it.  Otherwise, I will try my best (without testing) for the next release candidate.

Cheers!

-----
John Lane Schultz
Spread Concepts LLC
Cell: 443 838 2200

On Dec 8, 2016, at 8:10 AM, Martin Schu <martin.sc11111 at gmail.com> wrote:

Hi John,

we are very glad to see the new version, 5.0.0 RC1, of The Spread Toolkit.
Apparently you've not only added IPv6 support but did further polishing, e.g. improved logging and error handling.

We've tested 5.0.0rc1 in our environment and observed some problems.

In our Sun/Oracle/Solaris environment spread 5.0.0rc1 fails during startup saying: 
"DL_init_channel_gen: problem (22: Invalid argument) in setsockopt of multicast ttl = 1; ignore on Windows"

In spread-src-5.0.0rc1:libspread-util/src/data_link.c you made some comment:

" * TODO: check on sizeof setsockopt types across platforms (i.e. - Sun: char vs. int)"

This leads to my assumption that you are aware of that issue, aren't you? Are you planning to fix it?

Kind regards,

Martin

Set Alarm mask to: ffffffff
2016-12-06 14:42:29 GMT Disabling Dangerous Monitor Commands!
2016-12-06 14:42:29 GMT Setting SO_REUSEADDR to auto
2016-12-06 14:42:29 GMT Hash value for this configuration is: 3310648069
2016-12-06 14:42:29 GMT Finished configuration file.
2016-12-06 14:42:29 GMT Conf_load_conf_file: using sin6_scope_id 0 for interface 172.16.0.171
2016-12-06 14:42:29 GMT Conf_load_conf_file: My name: easy-serv-02b, id: 176040470, addr: 172.16.0.171, port: 7982
2016-12-06 14:42:29 GMT E_init: went ok
2016-12-06 14:42:29 GMT new: creating pointer 0x39f7b0 to object type 2 named pack_head
2016-12-06 14:42:29 GMT new: creating pointer 0x385a10 to object type 50 named packet_body
2016-12-06 14:42:29 GMT new: creating pointer 0x39f800 to object type 8 named token_head
2016-12-06 14:42:29 GMT new: creating pointer 0x3a1fb0 to object type 9 named token_body
2016-12-06 14:42:29 GMT new: creating pointer 0x39f850 to object type 8 named token_head
2016-12-06 14:42:29 GMT new: creating pointer 0x385fd0 to object type 50 named packet_body
2016-12-06 14:42:29 GMT Net_signal_conf_reload: Bcast is not needed
2016-12-06 14:42:29 GMT Net_init: implicit: binding bcast recv channel to [0.0.0.0]:7982
2016-12-06 14:42:29 GMT DL_init_channel_gen: creating a SOCK_DGRAM socket of family 2
2016-12-06 14:42:29 GMT DL_init_channel_gen: turning SO_BROADCAST on for recv IPv4 channel
2016-12-06 14:42:29 GMT DL_init_channel_gen: binding recv channel to [0.0.0.0]:7982
2016-12-06 14:42:29 GMT DL_init_channel_gen: success; chan = 4
2016-12-06 14:42:29 GMT Net_init: implicit: binding token recv channel to [0.0.0.0]:7983
2016-12-06 14:42:29 GMT DL_init_channel_gen: creating a SOCK_DGRAM socket of family 2
2016-12-06 14:42:29 GMT DL_init_channel_gen: turning SO_BROADCAST on for recv IPv4 channel
2016-12-06 14:42:29 GMT DL_init_channel_gen: binding recv channel to [0.0.0.0]:7983
2016-12-06 14:42:29 GMT DL_init_channel_gen: success; chan = 5
2016-12-06 14:42:29 GMT Net_init: creating send channel bound to 172.16.0.171
2016-12-06 14:42:29 GMT DL_init_channel_gen: creating a SOCK_DGRAM socket of family 2
2016-12-06 14:42:29 GMT DL_init_channel_gen: turning SO_BROADCAST on for send IPv4 channel
2016-12-06 14:42:29 GMT DL_init_channel_gen: setting IPv4 multicast TTL to 1 for send channel
2016-12-06 14:42:29 GMT DL_init_channel_gen: problem (22: Invalid argument) in setsockopt of multicast ttl = 1; ignore on Windows
Exit caused by Alarm!






More information about the Spread-users mailing list