<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

    手冊

    搜索

    積分與排名

    最新評論

    閱讀排行榜

    評論排行榜

    主站蜘蛛池模板: 亚洲伦理一区二区| 中文字幕日韩亚洲| 亚洲国产日韩综合久久精品| 免费国产黄网站在线观看视频| 亚洲午夜久久久久久久久电影网| 国产黄在线观看免费观看不卡| 国产亚洲欧洲Aⅴ综合一区| 中文字幕在线免费播放| 亚洲日韩精品无码一区二区三区| 成人无码区免费A∨直播| 亚洲国产精品无码中文字| 99re这里有免费视频精品 | 永久免费av无码网站yy| 亚洲AV无码成人精品区天堂 | 国产精品亚洲专区无码WEB| 免费jlzzjlzz在线播放视频| 日日狠狠久久偷偷色综合免费| 亚洲中文字幕无码爆乳AV| 污污网站18禁在线永久免费观看| 亚洲精品在线视频观看| 成全高清视频免费观看| 爱情岛论坛免费视频| 亚洲AV无码国产精品麻豆天美| 免费精品国偷自产在线在线| 亚洲AV色欲色欲WWW| 久久99亚洲综合精品首页| 久久久免费精品re6| 亚洲欧美国产国产综合一区 | www.亚洲一区| 四虎成人精品永久免费AV| 亚洲精品伦理熟女国产一区二区| 亚洲精品成人a在线观看| 99精品国产成人a∨免费看| 亚洲成AV人片高潮喷水| 亚洲色精品vr一区二区三区| 国产一卡2卡3卡4卡2021免费观看 国产一卡2卡3卡4卡无卡免费视频 | 一区二区三区免费视频观看| 亚洲国产精品热久久| 日韩精品无码人妻免费视频| 99久久免费国产精品热| 亚洲国产无线乱码在线观看|