Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
他在编写本地代理服务器时,需要一个与浏览器(BS)通信的套接字和一个与 Web 服务器(WS)通信的套接字。我已经尝试实现代理。它可以工作,但是速度太慢了。我想,这样做的原因是,我为来自浏览器的每个请求创建了一个新的 WS。因此,每个请求都会创建一个到 WebServer 的新连接。我想我应该为每个请求代理使用一个 WS 和一个 Connection 必须转发到同一个 IP。这是正确的吗?