This commit is contained in:
Lidashuang 2024-04-12 10:17:31 +08:00
parent 234ceb15d7
commit b21d0d1214

View File

@ -519,7 +519,7 @@ func (svr *Service) HandleListener(l net.Listener, internal bool) {
}
for {
stream, err := session.AcceptStream()
stream, err := session.AcceptStreamWithContext(ctx)
if err != nil {
log.Debugf("Accept new mux stream error: %v", err)
session.Close()