ssh ukonceni spojeni pri necinosti

David Rohleder davro na ics.muni.cz
Středa Září 8 10:47:16 CEST 2004


632E56 na atlas.cz writes:

> Hello David,
>
> Tuesday, September 7, 2004, 12:43:07 PM, you wrote:

Odpoved jsem posilal uz vcera, ale zrejme neco nefunguje tak jak by
melo (nevylucuji poruchu na sve strane). Takze znovu :-)

>
> Ano spojuji linux s linuxem a tam to trva nez se to rozpoji asi 10
> minut.

Aha, a vy chcete, aby se odpojil uz po tech 5 sekundach? V tom pripade
si zkuste pohrat s hodnotami v /etc/sysclt.conf:

net.ipv4.tcp_keepalive_intvl = 75
net.ipv4.tcp_keepalive_probes = 9
net.ipv4.tcp_keepalive_time = 7200


tcp_keepalive_time - INTEGER
        How often TCP sends out keepalive messages when keepalive is enabled.
        Default: 2hours.

tcp_keepalive_probes - INTEGER
        How many keepalive probes TCP sends out, until it decides that the
        connection is broken. Default value: 9.

tcp_keepalive_intvl - INTEGER
        How frequently the probes are send out. Multiplied by
        tcp_keepalive_probes it is time to kill not responding connection,
        after probes started. Default value: 75sec i.e. connection
        will be aborted after ~11 minutes of retries.


Stejneho efektu jako v /etc/sysctl.conf je mozne dosahnout pomoci 

echo spravna_hodnota >/proc/sys/net/ipv4/tcp_keep....

viz /usr/src/linux/Documentation/networking/ip-sysclt.txt


Jak toho dosahnout pro jednotlive spojeni netusim.


-- 
-------------------------------------------------------------------------
David Rohleder						davro na ics.muni.cz
Institute of Computer Science, Masaryk University
Brno, Czech Republic
-------------------------------------------------------------------------


Další informace o konferenci Linux