Commits


thingsd: run a single sockets process Drop the prefork pool of sockets processes. thingsd serves a handful of clients, every thing packet was broadcast to all N processes, and the duplicate client name and max clients checks in parse.y only ever saw one process, as the XXX comment there admitted. With one sockets process those checks are global, control no longer counts replies from N processes, and the pipe arrays in main() go away. "prefork" in thingsd.conf is still parsed and logs a deprecation warning. The listener descriptor is handed to the sockets process instead of dup'd, so the parent stops holding a copy of every listener. This should help prepare mqttd changes.


Refactor thingsd for modern imsg, removing proc abstraction layer. - Extend copyright notices to 2026 and update author email domain. - Replace legacy proc‑based messaging with imsg event helpers (imsgev, imsg_compose_event, etc.). - Remove obsolete proc headers and related code paths across client, socket, and configuration modules. - Simplify TLS initialization: drop unused keypair addition, tighten error handling, and ensure proper memory checks. - Adjust socket creation signatures to use sockaddr_storage directly. - Introduce one‑shot timeout constant and improve client subscription handling. - Update documentation files (README, man pages) to reflect OpenBSD 7.7 requirement and corrected parity options. - Clean up dead code, improve naming, and add missing initializations for new structures. These changes modernize the codebase, fix several bugs related to TLS handshakes and client management.


Apply ports patches. Sorry that I haven't paid enough attention!


remove some unnecessary code


fix thingsctl for portrange removal


remove portrange, since we are never going to use a range of ports. remove missed log_info line


whoops, don't bypass client bufferevent setup


move tls callbacks to sockets where they belong. fix tls handshake.


remove things.c.orig


reenable client tls


reenable tls


fix thingsctl


whoops, overwrote orig things.c file accidentaly at some point


update example conf file


Complete refactor and majority rewrite for v4 upcoming release. Changelog: * Well, almost everything. I made a huge assumption error on the conversion to privsep proc model. This changes all things listening sockets to actually use that model. All things remain in privileged process. There are still some issues to address, but this is good enough for now. * moved "socket" code to sockets.c and out of client.c * keep things in priv process. this needs to remain, especially for ip_addr things * only allow one listening port per thing. sharing was a bad idea in the beginning * only allow a client to subscribe to one thing. this greatly improves things. * require udp binding interface * fix unnoticed problem about sockets not getting opened everywhere when requested * thingsctl hasn't been touched yet * i'm sure there's a ton i missed


fix for -fno-common


convert all the stupid things to memcpy


fix potential leak in thingsctl


clean up some dereference problems, free problems, and logic problems


fix inflight count


Fix bad multi-subscription design. Use correct event in accept_reserve and pause.


require root to kill clients and show packets


NULL client->sub_names after free


missed small parse.y removal


fix free on sub_names