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

@ -128,6 +128,7 @@ func (s *Server) handleUDPPayload(ctx context.Context, conn stat.Connection, dis
conn.Write(data.Bytes())
})
defer udpServer.RemoveRay()
inbound := session.InboundFromContext(ctx)
var dest *net.Destination