From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,30f7dbc137470c88 X-Google-Attributes: gidfee84,public From: dpc6787@illinois.cs.rit.edu (David P Cutter) Subject: Re: keep-alive on tcp/ip-socket connections Date: 1996/10/21 Message-ID: <54g21p$fum@rit.cs.rit.edu>#1/1 X-Deja-AN: 190950814 references: <54fqd5$m4e@news.uni-c.dk> organization: Rochester Institute of Technology, Rochester, NY newsgroups: comp.unix.osf.osf1 In article <54fqd5$m4e@news.uni-c.dk>, Ole Joergensen wrote: >Does anybody know how to control sending of 'keep-alives' on >tcp-connections >(OSF/1 - alpha platforms) ? > >The problem arises when programming tcp at the socket-level (in C). > [...stuff deleted...] > >The question is then: How does one change this? How can you make the >probing start as soon >as the connection is established? > Yes! I've been complaining about this one for a while. We have to solve the same type of problems as described above. Most TCP/IP vendors do not allow a programmer to specify a timer value for keep-alives. And on top of that, there is no way to specify a different timer per/socket - it's global value based per net interface. For that reason most vendors implement these values in the kernel. On Solaris we can use the ndd utility to change these values, on DUnix edit /sys/conf/ and add/change the tcp_keepidle, tcp_keepintvl values [...opps, I never did try this on DUnix...]. If the kernel config doesn't work, you may have to "adb" the kernel and change the values by hand (yuk). Dave