我寫了一個代理,它也複製了流量。我正嘗試將網絡流量複製到應接收所有輸入並處理所有請求的副本服務器。但是,只有主服務器上的響應對客戶端可見。高級別工作流程如下 Thread 1. Take input from client forward it to a pipe in non-blocking way, and to the server
Thread 2. Read from server
我兩個終端,並能夠得到輸出之間進行的iperf如下: 2017-01-09 16:43:03: Connecting to host 192.168.234.2, port 5201
2017-01-09 16:43:03: [ 4] local 192.168.234.1 port 36544 connected to 192.168.234.2 port 5201
2017-01-