Skip to content

v1.4.9

Latest

Choose a tag to compare

@rowan-claude rowan-claude released this 29 Oct 15:31
ced9b4b

Creating a socket no longer fails when the OS refuses a larger send or receive buffer. netcode asks for 4 MiB and halves the request until it is accepted, down to 64 KiB. If none is accepted, the socket keeps the OS default and the fact is logged at info level.

Before this release, a stock NetBSD 11.0 refused every request down to the old 256 KiB floor, because kern.sbmax is 256 KiB and only about 227 KiB of it is usable. As a result, netcode_server_create and client create failed there. On a stock NetBSD 11.0 the socket now gets 128 KiB. Linux, macOS and Windows clamp oversized requests rather than refusing them, so their behavior is unchanged.

There is no change to the wire format or the API. test_socket_buffer_size_back_off covers the back-off against a fake OS with no sockets. yojimbo's NetBSD VM leg proves the fix end to end.