GoForum🌐 V2EX

macOS BUG,长时间运行后新的网络连接无法建立

johnbobby · 2026-04-10 15:35 · 0 次点赞 · 0 条回复

设备连续运行至 49 天 17 小时 2 分 47 秒后,新的网络连接可能停止建立,现有连接则可能继续维持。

问题出在 XNU 内核中的 tcp_now 计时器,该计时器以 32 位无符号整数记录自开机以来的毫秒数,达到上限后回绕,进而影响已关闭 TCP 连接的清理过程。

之前论坛就有人谈论过长时间不重启,会遇到各种 bug

内核都能遇到整数类型回绕的问题,改成容量更大的的类型?

https://www.tomshardware.com/software/macos/macos-has-a-49-7-day-networking-time-bomb-built-in-that-only-a-reboot-fixes-comparison-operation-on-unreliable-time-value-stops-machines-dead-in-their-tracks

https://photon.codes/blog/we-found-a-ticking-time-bomb-in-macos-tcp-networking

0 条回复
添加回复
你还需要 登录 后发表回复

登录后可发帖和回复

登录 注册
主题信息
作者: johnbobby
发布: 2026-04-10
点赞: 0
回复: 0