UDP: faster close (in some rare situations)

This commit is contained in:
patterniha 2025-07-19 11:59:59 +03:30
parent 83686ebfaa
commit 212382ccbb
4 changed files with 11 additions and 2 deletions

View file

@ -259,6 +259,7 @@ func (s *Server) handleUDPPayload(ctx context.Context, clientReader *PacketReade
errors.LogWarningInner(ctx, err, "failed to write response")
}
})
defer udpServer.RemoveRay()
inbound := session.InboundFromContext(ctx)
user := inbound.User