<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Tru64 Unix 中的主題 如何得tcpip timeout 設定時間</title>
    <link>https://community.hpe.com/t5/tru64-unix/%E5%A6%82%E4%BD%95%E5%BE%97tcpip-timeout-%E8%A8%AD%E5%AE%9A%E6%99%82%E9%96%93/m-p/2252824#M603</link>
    <description>我想知道TCPIP timeout 設定時間,是在sysconfig中哪一個參數呢?</description>
    <pubDate>Tue, 06 Mar 2007 23:55:46 GMT</pubDate>
    <dc:creator>watermelonyu</dc:creator>
    <dc:date>2007-03-06T23:55:46Z</dc:date>
    <item>
      <title>如何得tcpip timeout 設定時間</title>
      <link>https://community.hpe.com/t5/tru64-unix/%E5%A6%82%E4%BD%95%E5%BE%97tcpip-timeout-%E8%A8%AD%E5%AE%9A%E6%99%82%E9%96%93/m-p/2252824#M603</link>
      <description>我想知道TCPIP timeout 設定時間,是在sysconfig中哪一個參數呢?</description>
      <pubDate>Tue, 06 Mar 2007 23:55:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/tru64-unix/%E5%A6%82%E4%BD%95%E5%BE%97tcpip-timeout-%E8%A8%AD%E5%AE%9A%E6%99%82%E9%96%93/m-p/2252824#M603</guid>
      <dc:creator>watermelonyu</dc:creator>
      <dc:date>2007-03-06T23:55:46Z</dc:date>
    </item>
    <item>
      <title>如何得tcpip timeout 設定時間</title>
      <link>https://community.hpe.com/t5/tru64-unix/%E5%A6%82%E4%BD%95%E5%BE%97tcpip-timeout-%E8%A8%AD%E5%AE%9A%E6%99%82%E9%96%93/m-p/2252825#M604</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Please see "# man sys_attrs_inet".&lt;BR /&gt;&lt;BR /&gt;..&lt;BR /&gt;&lt;BR /&gt;  tcp_msl&lt;BR /&gt;&lt;BR /&gt;      The maximum lifetime of a TCP segment.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;      Default value: 60 (in units of .5 seconds)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;      Minimum value: 1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;      Maximum value: 2 billion&lt;BR /&gt;&lt;BR /&gt;..&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;And&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;CLOSE_WAIT state uses keepalive timer&lt;BR /&gt;&lt;BR /&gt;-------------------------------------&lt;BR /&gt;&lt;BR /&gt;A socket reaches a CLOSE_WAIT state during a passive close condition.&lt;BR /&gt;&lt;BR /&gt;This happens when the client doesn't properly close the connection.  The&lt;BR /&gt;&lt;BR /&gt;client has sent a FIN, the server responds with an ACK, and sits waiting&lt;BR /&gt;&lt;BR /&gt;for a close() system call from the client application to close the&lt;BR /&gt;&lt;BR /&gt;socket.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If the client application has setup a keepalive timer on the socket,&lt;BR /&gt;&lt;BR /&gt;these will go away at the time specified in the client application.  If&lt;BR /&gt;&lt;BR /&gt;the client has not set the timer, the server can enable keepalives to&lt;BR /&gt;&lt;BR /&gt;handle this condition.   Following are the parameters used for this timer,&lt;BR /&gt;&lt;BR /&gt;and their default values.  They are all in the "inet" subsystem in&lt;BR /&gt;&lt;BR /&gt;sysconfigtab.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;tcp_keepalive_default = 0 (set to 1 to enable)&lt;BR /&gt;&lt;BR /&gt;tcp_keepcnt = 8 (number of retransmitted probes to client)&lt;BR /&gt;&lt;BR /&gt;tcp_keepidle = 14400 (half-seconds =  2 hours) (length of time before&lt;BR /&gt;&lt;BR /&gt;first probe is sent.  this is the parameter to change if you want to&lt;BR /&gt;&lt;BR /&gt;lower the time the sockets hang around in this state)&lt;BR /&gt;&lt;BR /&gt;tcp_keepintvl = 150 (half-seconds = 1.25 min) (time between probes)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;So the total time before a CLOSE_WAIT socket connection is dropped is,&lt;BR /&gt;&lt;BR /&gt;by default -&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;tcp_keepidle + ( tcp_keepcnt * tcp_keepintvl) =&lt;BR /&gt;&lt;BR /&gt;2 hours + ( 8 * 1.25 mins ) =&lt;BR /&gt;&lt;BR /&gt;2 hours 10 minutes&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;You can change these parameters dynamically, as follows, but they will&lt;BR /&gt;&lt;BR /&gt;not affect current sockets in this state, only future connections.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# sysconfig -r inet tcp_keepalive_default=1&lt;BR /&gt;&lt;BR /&gt;tcp_keepalive_default: reconfigured&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;To change the parameters permanently, add the lines to the&lt;BR /&gt;&lt;BR /&gt;/etc/sysconfigtab, with&lt;BR /&gt;&lt;BR /&gt;the following format.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;inet:&lt;BR /&gt;&lt;BR /&gt;    tcp_keepalive_default=1&lt;BR /&gt;&lt;BR /&gt;    tcp_keepidle = 7200&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;Richard.</description>
      <pubDate>Thu, 08 Mar 2007 01:37:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/tru64-unix/%E5%A6%82%E4%BD%95%E5%BE%97tcpip-timeout-%E8%A8%AD%E5%AE%9A%E6%99%82%E9%96%93/m-p/2252825#M604</guid>
      <dc:creator>watermelonyu</dc:creator>
      <dc:date>2007-03-08T01:37:12Z</dc:date>
    </item>
  </channel>
</rss>

