Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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
share|improve this answer

Your Answer


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.