Revert "Reduce http proxy client overhead by 1RTT"

This commit is contained in:
Kslr
2020-03-19 19:11:17 +08:00
committed by kslr
parent d555508cfe
commit cfbb875546
2 changed files with 14 additions and 79 deletions
-8
View File
@@ -7,7 +7,6 @@ import (
"time"
"github.com/golang/protobuf/proto"
"v2ray.com/core/common/buf"
"v2ray.com/core/common/mux"
"v2ray.com/core/common/net"
"v2ray.com/core/common/session"
@@ -120,13 +119,6 @@ func NewBridgeWorker(domain string, tag string, d routing.Dispatcher) (*BridgeWo
tag: tag,
}
// Initialize the connection by sending a Keepalive frame
keepalive := buf.New()
mux.FrameMetadata{SessionStatus: mux.SessionStatusKeepAlive}.WriteTo(keepalive)
err = link.Writer.WriteMultiBuffer(buf.MultiBuffer{keepalive})
if err != nil {
return nil, err
}
worker, err := mux.NewServerWorker(context.Background(), w, link)
if err != nil {
return nil, err