envoyproxy/envoy

Support one-to-one mapping of upstream/downstream connections

Open

#12,370 创建于 2020年7月29日

在 GitHub 查看
 (17 评论) (0 反应) (0 负责人)C++ (5,373 fork)batch import
area/httpdesign proposalhelp wanted

仓库指标

Star
 (27,997 star)
PR 合并指标
 (平均合并 8天) (30 天内合并 378 个 PR)

描述

I’d like to have the ability to have exactly one upstream connection for every downstream connection that we decide to route. That is, streams on the same downstream connection should share the same upstream connection, but no other streams should use that upstream connection.

The rationale for this is twofold:

  1. I want to ensure that only the traffic for a single downstream client is carried over a given upstream connection. I do not want mixing of client traffic over an upstream connection. This would be solved by creating a new connection for every stream if it weren't for the second rationale
  2. I want to avoid the overhead of the TCP handshake that would be needed in the connection-per-stream case.

I have time to work on this feature if there is a consensus that it makes sense.

贡献者指南