On 10/18/05, Márcio Oliveira <moliveira@xxxxxxxx> wrote: > Anybody knows how can I reduce the idle connections (TCP, UDP, ...) > timeout in Linux systems? At the server-side, check the file /usr/src/linux/net/ipv4/netfilter/ip_conntrack_proto_tcp.c .. static unsigned long tcp_timeouts[] = { 30 MINS, /* TCP_CONNTRACK_NONE, */ 5 DAYS, /* TCP_CONNTRACK_ESTABLISHED, */ 2 MINS, /* TCP_CONNTRACK_SYN_SENT, */ 60 SECS, /* TCP_CONNTRACK_SYN_RECV, */ 2 MINS, /* TCP_CONNTRACK_FIN_WAIT, */ 2 MINS, /* TCP_CONNTRACK_TIME_WAIT, */ 10 SECS, /* TCP_CONNTRACK_CLOSE, */ 60 SECS, /* TCP_CONNTRACK_CLOSE_WAIT, */ 30 SECS, /* TCP_CONNTRACK_LAST_ACK, */ 2 MINS, /* TCP_CONNTRACK_LISTEN, */ }; Change the TCP_CONNTRACK_TIME_WAIT field and recompile the kernel. At the client side, echo 100 > /proc/sys/net/ipv4/tcp_keepalive_time where 100 is the number of seconds after which the client will send tcp-keepalive packets to reset the timer at the server side. ./h -- Operating Systems and Computer Architecture Research - University of Cincinnati http://www.ececs.uc.edu/~mohapth -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/