mirror of
https://github.com/bolucat/Archive.git
synced 2026-04-23 00:17:16 +08:00
Update On Mon Dec 2 19:39:24 CET 2024
This commit is contained in:
@@ -340,7 +340,8 @@ func (m *Mux) DialContextWithConn(ctx context.Context, conn net.Conn) (net.Conn,
|
||||
return nil, fmt.Errorf("NewTCPUnderlayWithConn() failed: %v", err)
|
||||
}
|
||||
go func() {
|
||||
err := underlay.RunEventLoop(ctx)
|
||||
// This is a long running loop, detach from client dial context.
|
||||
err := underlay.RunEventLoop(context.Background())
|
||||
if err != nil && !stderror.IsEOF(err) && !stderror.IsClosed(err) {
|
||||
log.Debugf("%v RunEventLoop(): %v", underlay, err)
|
||||
}
|
||||
@@ -639,7 +640,8 @@ func (m *Mux) newUnderlay(ctx context.Context) (Underlay, error) {
|
||||
UnderlayMaxConn.Store(currEst)
|
||||
}
|
||||
go func() {
|
||||
err := underlay.RunEventLoop(ctx)
|
||||
// This is a long running loop, detach from client dial context.
|
||||
err := underlay.RunEventLoop(context.Background())
|
||||
if err != nil && !stderror.IsEOF(err) && !stderror.IsClosed(err) {
|
||||
log.Debugf("%v RunEventLoop(): %v", underlay, err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user