]> git.ipfire.org Git - thirdparty/openwrt.git/commit
unetmsg: fix TCP_USER_TIMEOUT socket option level 24595/head
authorChad Monroe <chad@monroe.io>
Fri, 7 Aug 2026 01:43:05 +0000 (18:43 -0700)
committerHauke Mehrtens <hauke@hauke-m.de>
Thu, 13 Aug 2026 00:01:39 +0000 (02:01 +0200)
commit6e20811dfe788badbe2d2dd5b157052d99e5170d
tree4093dc911ae9e1148fe736a1473ae3e40d789577
parent4abffae9b4e82604716cdcb30886469a435fe8bc
unetmsg: fix TCP_USER_TIMEOUT socket option level

The ucode socket module exports no SOL_TCP so setopt() was called
with level 0 and silently failed. This left inter-node connections
without the 5 second user timeout. A peer that stopped reading
could then stall a blocking channel write forever, deadlocking
every unetmsgd in the mesh along with their local clients.

Use IPPROTO_TCP and warn when setopt fails.

Signed-off-by: Chad Monroe <chad@monroe.io>
Link: https://github.com/openwrt/openwrt/pull/24595
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
package/network/services/unetmsg/Makefile
package/network/services/unetmsg/files/usr/share/ucode/unetmsg/unetmsgd-remote.uc