Distributions
› Ubuntu
› Fedora
› CentOS
中文资源站
› 网易开源镜像站
Kraken
V2EX  ›  Linux

[ Linux , tcp]同一个 tcp 中的多条 channel 共享 fd 吗?

  •  
  •   Kraken ·
    KrakenMing · Jan 23, 2019 · 3084 views
    This topic created in 2843 days ago, the information mentioned may be changed or developed.

    像 amqp 这种两台服务器使用同一 Tcp 中的多条 channel 那么是一条 Tcp 连接使用一个 fd 还是一个 channel 使用一个 fd 呢? 一般 web 服务器需要上调进程 fd 数量限制吗?

    2 replies  •  2019-01-24 10:22:34 +08:00
    pursuer
    pursuer
    Jan 23, 2019
    1
    不懂 amqp,只知道一般一个 tcp 连接有一个 fd,但可以是从同一个 socket 的 fd 中 accept 出来的吧
    ICKelin
    ICKelin
    Jan 24, 2019
    2
    应该是再加一层协议包含每个 channel 的 id 吧,类似 https://github.com/xtaci/smux
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4831 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 07:48 · PVG 15:48 · LAX 23:48 · JFK 02:48
    ♥ Do have faith in what you're doing.