mirror of
https://github.com/snail007/goproxy.git
synced 2026-04-27 08:25:54 +03:00
[GH-ISSUE #477] UDP代理30秒没有数据收发会released #381
Labels
No labels
TODO
bug
duplicate
enhancement
good first issue
help wanted
helpful
invalid
need-confirm
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/goproxy#381
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Jierui on GitHub (Apr 14, 2022).
Original GitHub issue: https://github.com/snail007/goproxy/issues/477
cmd: ./proxy udp --timeout=10000 -p ":15353" -T udp -P "127.0.0.1:15061"
不过timeout参数设置为大于30s还是小于30s实际表示超时时间都是30s
2022/04/14 02:48:05.633531 INFO udp conn 192.168.20.13:5061 <--> :15353 connected
2022/04/14 02:48:36.760898 INFO udp conn 192.168.20.13:5061 <--> :15353 released
@Jierui commented on GitHub (Apr 14, 2022):
这个是connect timeout参数,udp released参数怎么设置呢,我想时间更长些
@snail007 commented on GitHub (Apr 14, 2022):
udp无状态,没有超时一说。
@Jierui commented on GitHub (Apr 14, 2022):
2022/04/14 02:48:36.760898 INFO udp conn 192.168.20.13:5061 <--> :15353 released,释放服务端发回来的命令客户端收不到了,如果是connected状态就没有问题, 30秒没数据经过代理就会自动释放这个peer吗,有没有办法可以控制久一点呢
@snail007 commented on GitHub (Apr 14, 2022):
这个时间目前写死的
@Jierui commented on GitHub (Apr 14, 2022):
多谢你的解答,你看后续版本会不会考虑下把这个参数开放出来可配置,有些场景恰好过了30多秒回复,但是代理通道已经关闭了;
@snail007 commented on GitHub (Apr 14, 2022):
下个版本考虑加上参数控制这个gc时间。
@snail007 commented on GitHub (Jul 19, 2022):
done