<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    JUST DO IT ~

    我只想當個程序員

    實驗 觀察tcp連接時候狀態

    學習socket bind函數時發現backlog: 

    The  backlog  argument defines the maximum length to which the queue of pending connections for
           sockfd may grow.  If a connection request arrives when  the  queue  is  full,  the  client  may
           receive  an  error  with  an indication of ECONNREFUSED or, if the underlying protocol supports
           retransmission, the request may be ignored so that a later reattempt at connection succeeds.

    The behavior of the backlog argument on TCP sockets changed with Linux 2.2.  Now  it  specifies
           the queue length for completely established sockets waiting to be accepted, instead of the num-
           ber of incomplete connection requests.  The maximum length of the queue for incomplete  sockets
           can  be set using /proc/sys/net/ipv4/tcp_max_syn_backlog.  When syncookies are enabled there is
           no logical maximum length and this setting is ignored.  See tcp(7) for more information.
           If the backlog argument is greater than the value in /proc/sys/net/core/somaxconn, then  it  is
           silently  truncated  to  that  value; the default value in this file is 128.  In kernels before
           2.4.25, this limit was a hard coded value, SOMAXCONN, with the value 128.
    實驗:
    [精彩] Linux Kernel 2.6,listen(5),永不 accept,到底能建立成功多少個連接?
    http://www.chinaunix.net/old_jh/23/1259656.html

    【已解決】大并發下listen的連接完成對列backlog太小導致客戶超時,服務器效率低下
    http://bbs.chinaunix.net/thread-2318039-1-1.html

    深入參考閱讀 
    tcp listen backlog connect等api
    http://www.bbset.com/tcp/459.html

    listen() 的 backlog 及 TCP 相關參數
    http://blog.clanzx.net/2014/05/17/listen-backlog.html

    posted on 2015-05-20 17:21 小高 閱讀(294) 評論(0)  編輯  收藏 所屬分類: Network| Socket | 進程間通訊

    導航

    <2015年5月>
    262728293012
    3456789
    10111213141516
    17181920212223
    24252627282930
    31123456

    統計

    常用鏈接

    留言簿(3)

    隨筆分類(352)

    收藏夾(19)

    關注的blog

    手冊

    搜索

    積分與排名

    最新評論

    閱讀排行榜

    評論排行榜

    主站蜘蛛池模板: 96免费精品视频在线观看| 一级有奶水毛片免费看| 亚洲一区二区免费视频| 无码欧精品亚洲日韩一区| baoyu122.永久免费视频| 国产偷v国产偷v亚洲高清| 国产又黄又爽又大的免费视频| 亚洲伊人色欲综合网| 大妹子影视剧在线观看全集免费| 国产精品V亚洲精品V日韩精品 | 亚洲国产精华液网站w| 国产日韩AV免费无码一区二区三区 | 精品多毛少妇人妻AV免费久久| 亚洲男人第一无码aⅴ网站| 一个人免费观看视频在线中文| 亚洲一区二区视频在线观看| 久久国产乱子伦精品免费午夜| 亚洲情XO亚洲色XO无码| 久久午夜夜伦鲁鲁片免费无码 | 成人免费的性色视频| 亚洲欧美日韩综合久久久| 浮力影院第一页小视频国产在线观看免费 | 亚洲av日韩专区在线观看| 亚洲人成网站在线观看青青| 久久av免费天堂小草播放| 久久国产亚洲电影天堂| 免费福利网站在线观看| 日韩在线视精品在亚洲| 国产中文在线亚洲精品官网| 国产高清不卡免费视频| 国产精品亚洲综合久久| 国产L精品国产亚洲区久久| 国产va在线观看免费| 亚洲性无码一区二区三区| 亚洲国产综合久久天堂| 99re6热视频精品免费观看| 亚洲欧美日韩综合俺去了| 亚洲国产美女精品久久久久∴| 青青青国产在线观看免费网站| 麻豆安全免费网址入口| 亚洲国产天堂在线观看|