V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
artandlol
V2EX  ›  Linux

Linux 下网络问题,关于 SYN_SENT 超时时间

  •  
  •   artandlol · 2017-03-15 18:42:32 +08:00 · 2227 次点击
    这是一个创建于 2606 天前的主题,其中的信息可能已经有所发展或是发生改变。

    目前超时时间是 2s 。 请问可否设定 SYN_SENT 超时时间 ,需要怎么做

    [root@work ~]# lsof |grep public1.114dns.com
    bash      3877      root    3u     IPv4      38156        0t0        TCP 192.168.1.6:52380->public1.114dns.com:33369 (SYN_SENT)
    
    [root@work ~]# sysctl -a|grep syn_sent
    net.netfilter.nf_conntrack_tcp_timeout_syn_sent = 0
    
    4 条回复    2017-03-15 21:40:55 +08:00
    billlee
        1
    billlee  
       2017-03-15 20:09:55 +08:00
    net.ipv4.tcp_syn_retries
    artandlol
        2
    artandlol  
    OP
       2017-03-15 20:11:10 +08:00 via Android
    @billlee 有改了 1s
    但测试还是 2s
    billlee
        3
    billlee  
       2017-03-15 20:17:47 +08:00
    r#2 @artandlol 这个单位不是秒。。
    artandlol
        4
    artandlol  
    OP
       2017-03-15 21:40:55 +08:00 via Android
    @billlee 百分之一秒吗? 这个 Google 过了,没效果
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2085 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 16:05 · PVG 00:05 · LAX 09:05 · JFK 12:05
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.