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.
Remarks:
Properties:
  | Type: | code |  | Version: | 1.0.3 | 
  | Status: | new |  | Created: | 2003-Jan-13 13:56 | 
  | Severity: | 2 |  | Last Change: | 2003-Jan-17 17:44 | 
  | Priority: | 4 |  | Subsystem: | sa | 
  | Assigned To: | rse |  | Derived From: |  | 
  | Creator: | anonymous |