mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2024-11-15 13:41:23 +08:00
fix: tuic server's SetCongestionController
This commit is contained in:
parent
db4f3eda55
commit
f4414566d3
@ -54,6 +54,7 @@ func (s *Server) Serve() error {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
SetCongestionController(conn, s.CongestionController)
|
||||||
uuid, err := uuid.NewV4()
|
uuid, err := uuid.NewV4()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
@ -73,7 +74,6 @@ func (s *Server) Close() error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type serverHandler struct {
|
type serverHandler struct {
|
||||||
serverOption ServerOption
|
|
||||||
*Server
|
*Server
|
||||||
quicConn quic.Connection
|
quicConn quic.Connection
|
||||||
uuid uuid.UUID
|
uuid uuid.UUID
|
||||||
@ -167,7 +167,6 @@ func (s *serverHandler) handleStream() (err error) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
SetCongestionController(s.quicConn, s.CongestionController)
|
|
||||||
go func() (err error) {
|
go func() (err error) {
|
||||||
stream := &quicStreamConn{
|
stream := &quicStreamConn{
|
||||||
Stream: quicStream,
|
Stream: quicStream,
|
||||||
@ -215,7 +214,6 @@ func (s *serverHandler) handleUniStream() (err error) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
SetCongestionController(s.quicConn, s.CongestionController)
|
|
||||||
go func() (err error) {
|
go func() (err error) {
|
||||||
defer func() {
|
defer func() {
|
||||||
stream.CancelRead(0)
|
stream.CancelRead(0)
|
||||||
|
Loading…
Reference in New Issue
Block a user