Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

Is there any way to find out what is the default value set for option SO_RCVTIMEO on Solaris 10?

If there is a way to find out how would one go about changing it?

P.S. I am aware of ability of using getsockopt after creation to see what the setting is, but I am looking for a way of setting this globally and not individually.

share|improve this question
    
Is grep -n SO_RCVTIMEO /usr/include/sys/socket.h what are you looking for? –  dchirikov Jan 28 '13 at 17:29
    
@dchirikov That's not a value of the timeout. –  Karlson Jan 28 '13 at 17:38
    
Meddling with the finely tuned default timeouts for TCP is like the rules of program optimization: "Don't do it. Rule for experts: Don't do it (yet)". You have to have an absolutely clear reason do do this, and probably never on Intenrnet-facing links. –  vonbrand Jan 28 '13 at 22:24
    
@vonbrand If they were finely tuned for what this machine does the question wouldn't come up. :) –  Karlson Jan 29 '13 at 16:32
add comment

1 Answer

up vote 1 down vote accepted

Do getsockopt() or setsockopt() return an error with that option? Is SO_RCVTIMEO listed on your setsockopt man page? It's not on mine, and it's not supported up to and including Solaris 10 AFAIK. (I don't have a Solaris 11 to hand to check its status there, Google tells me it was added to OpenSolaris, so there's good chance.)

In general, TCP defaults and tuning parameters can be inspected or configured using ndd:

$ /usr/sbin/ndd -get /dev/tcp \? | fgrep time
tcp_time_wait_interval        (read and write)
tcp_co_timer_interval         (read and write)
tcp_push_timer_interval       (read and write)
tcp_close_wait_interval(obsoleted- use tcp_time_wait_interval) (no read or write)

$ /usr/sbin/ndd -get /dev/tcp  tcp_time_wait_interval
60000
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.