OSSP CVS Repository

ossp - Ticket #9
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Attach]  [Edit]  [History

Ticket 9: setsockopt(SO_RCVTIMEO/SO_SNDTIMEO) not working on Solaris 2.8

I run OSSP sa on Solaris 2.8. Trying to sa_bind fails with a system error, strerror(errno) reports "Option not supported by protocol".

After investigating it shows that timeout setting through setsockopt(SO_RCVTIMEO / SO_SNDTIMEO) does not work as expected. I manually #undef-ined those 2 constants (after system includes) and it worked.

I suggest either system-specific disabling those 2 constants, or implementing a run-time fallback to select (which is normalized and ubiquitous, for sockets) when setting timeouts through setsockopt fails.

[Add remarks]

Remarks:

Properties:

Type: code           Version: 1.0.3 
Status: new          Created: 2003-Jan-13 13:56
Severity:          Last Change: 2003-Jan-17 17:44
Priority:          Subsystem: sa 
Assigned To: rse           Derived From:  
Creator: anonymous 

CVSTrac 2.0.1