Skip to content

有关tcp_max_syn_backlog不对SYN_RECV队列限制的讨论 #1

Description

@yangbodong22011

看了你的笔记,我运行了你的代码,我这边不断启动client连接server,SYN_RECV状态的连接数是不断上升的。

uname -a
Linux centos-linux.shared 3.10.0-514.el7.x86_64 #1 SMP Tue Nov 22 16:42:41 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

运行过程

  1. python server.py
  2. watch -n 1 "sudo netstat -natp | grep 7777" // 使用watch命令监控状态
  3. python client.py & // 不断执行多次

client_test

所以我觉得你一定是实验中什么环节错误了,tcp_max_syn_backlog参数即使内核版本不同,也不会随便改含义的,再确定下你的实验步骤。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions