mirror of
https://github.com/SagerNet/sing-mux.git
synced 2025-04-04 20:37:44 +03:00
Fix h2 buffer too large
This commit is contained in:
parent
ff03af056a
commit
b0a6ffd840
1 changed files with 4 additions and 2 deletions
2
h2mux.go
2
h2mux.go
|
@ -38,6 +38,7 @@ func newH2MuxServer(conn net.Conn) *h2MuxServerSession {
|
||||||
done: make(chan struct{}),
|
done: make(chan struct{}),
|
||||||
server: http2.Server{
|
server: http2.Server{
|
||||||
IdleTimeout: idleTimeout,
|
IdleTimeout: idleTimeout,
|
||||||
|
MaxReadFrameSize: buf.BufferSize,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
go func() {
|
go func() {
|
||||||
|
@ -169,6 +170,7 @@ func newH2MuxClient(conn net.Conn) (*h2MuxClientSession, error) {
|
||||||
return conn, nil
|
return conn, nil
|
||||||
},
|
},
|
||||||
ReadIdleTimeout: idleTimeout,
|
ReadIdleTimeout: idleTimeout,
|
||||||
|
MaxReadFrameSize: buf.BufferSize,
|
||||||
},
|
},
|
||||||
done: make(chan struct{}),
|
done: make(chan struct{}),
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue