Fix: server was timing out response from the proxy instead of the request from the client.

pull/106/head
notsure2 4 years ago committed by Andy Wang
parent 850f45d66f
commit 35236b27d1

@ -183,8 +183,8 @@ func dispatchConnection(conn net.Conn, sta *server.State) {
}
log.Tracef("%v endpoint has been successfully connected", ci.ProxyMethod)
go util.Pipe(localConn, newStream, 0)
go util.Pipe(newStream, localConn, sta.Timeout)
go util.Pipe(localConn, newStream, sta.Timeout)
go util.Pipe(newStream, localConn, 0)
}

Loading…
Cancel
Save