mirror of
https://github.com/SagerNet/sing-box.git
synced 2026-11-16 21:17:41 +00:00
The direct outbound opens one ICMP socket for each echo flow. The sockets were kept for one minute after the last packet and their number was not limited, so scanning hosts through the outbound could accumulate an unbounded number of sockets, which has been reported to panic the kernel on macOS. Close idle flows after ICMPTimeout as the stacks do, and keep at most 1024 flows, closing a least recently active one when the limit is reached. |
||
|---|---|---|
| .. | ||
| goos | ||
| certificate.go | ||
| cgo.go | ||
| cgo_disabled.go | ||
| dhcp.go | ||
| dns.go | ||
| err.go | ||
| hysteria2.go | ||
| netns.go | ||
| network.go | ||
| os.go | ||
| os_not_tvos.go | ||
| os_tvos.go | ||
| path.go | ||
| path_unix.go | ||
| protocol.go | ||
| proxy.go | ||
| quic.go | ||
| quic_stub.go | ||
| rule.go | ||
| speed.go | ||
| time.go | ||
| timeout.go | ||
| tls.go | ||
| v2ray.go | ||
| version.go | ||