mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-01 00:16:26 +00:00
Revert "Reduce http proxy client overhead by 1RTT"
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user