Elektrine lite

← Feed

@zwol@masto.hackers.town

2026-09-20 14:39 UTC

@joe@f.duriansoftware.com @eevee@slime.global no joy socketpair(AF_UNIX, SOCK_DGRAM, 0, [3, 4]) = 0 write(4, "\0\0\0"..., 1024) = 1024 shutdown(4, SHUT_RD) = 0 write(4, "\0\0\0"..., 1024) = 1024 close(3) = 0 write(4, "\0\0\0"..., 1024) = -1 ECONNREFUSED (Connection refused) (and if I _don't_ close the read end then we're back to "data hangs around consuming potentially unbounded amounts of RAM")

Replies (1)

  • @joe@f.duriansoftware.com 2026-09-20 14:53

    @zwol@masto.hackers.town @eevee@slime.global my thinking was that making it SOCK_DGRAM would mitigate the memory usage since if no one is there to send the datagram to right away it can get thrown out. But I’d have to look at the actual implementation to see how much it buffers in practice

    Open ##4779048