Skip to content

Commit 10c620a

Browse files
committed
proxy: fix udp
1 parent 6dbe120 commit 10c620a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

proxy/serverudp.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ func (p *Proxy) udpPacketLoop(ctx context.Context, conn *net.UDPConn, reqSema sy
9696
packet := make([]byte, n)
9797
copy(packet, b)
9898

99-
sErr := reqSema.Acquire(ctx)
99+
sErr := reqSema.Acquire(context.WithoutCancel(ctx))
100100
if sErr != nil {
101101
p.logger.ErrorContext(
102102
ctx,

0 commit comments

Comments
 (0)