{"added":null,"apiVersion":1,"behindSince":"2026-11-09","buildDepends":[],"categories":["devel","perl5"],"comment":"Send atomic messages from multiple writers across a POSIX pipe","compare":null,"dependentCount":null,"description":"Normally if you write to a pipe from multiple processes/threads, the messages\nwill come mixed together unpredictably. Some messages may be interrupted by\nparts of messages from other writers. This module takes advantage of some POSIX\nspecifications to allow multiple writers to send arbitrary data down a pipe in\natomic chunks to avoid the issue.\n\nNOTE: This only works for POSIX compliant pipes on POSIX compliant systems. Also\nsome features may not be available on older systems, or some platforms.\n\nUnder the hood this module will split your message into small sections of\nslightly smaller than the PIPE_BUF limit. Each message will be sent as 1 atomic\nchunk with a 4 byte prefix indicating what process id it came from, what thread\nid it came from, a chunk ID (in descending order, so if there are 3 chunks the\nfirst will have id 2, the second 1, and the final chunk is always 0 allowing a\nflush as it knows it is done) and then 1 byte with the length of the data\nsection to follow.\n\nOn the receiving end this module will read chunks and re-assemble them based on\nthe header data. So the reader will always get complete messages. Note that\nmessage order is not guarenteed when messages are sent from multiple processes\nor threads. Though all messages from any given thread/process should be in\norder.","flavors":[],"html":"https://daemonports.org/dragonfly/devel/p5-Atomic-Pipe/","kind":"port","lastUpdate":null,"license":["ART10","GPLv1+"],"licenses":["Artistic-1.0","GPL-1.0-or-later"],"maintainer":"sunpoet@FreeBSD.org","name":"p5-Atomic-Pipe","newest":false,"newestVersion":"0.033","noVulnData":false,"origin":"devel/p5-Atomic-Pipe","otherSystems":[{"maintainer":"sunpoet@FreeBSD.org","newest":true,"origin":"devel/p5-Atomic-Pipe","path":"/devel/p5-Atomic-Pipe/","system":"FreeBSD","updated":"2026-11-09","version":"0.033"},{"behindSince":"2026-11-09","maintainer":"sunpoet@FreeBSD.org","noVulnData":true,"origin":"devel/p5-Atomic-Pipe","path":"","system":"HardenedBSD","version":"0.032"},{"behindSince":"2026-11-09","maintainer":"sunpoet@FreeBSD.org","noVulnData":true,"origin":"devel/p5-Atomic-Pipe","path":"","system":"GhostBSD","version":"0.032"}],"packages":null,"pkgName":"p5-Atomic-Pipe-0.032","related":null,"repository":"DPorts","requiredBy":[],"requiredByCount":0,"runDepends":["archivers/p5-Compress-Zstd","lang/perl5.42"],"status":null,"system":"dragonfly","systemLabel":"DragonFly","version":"0.032","versions":[{"date":"2026-11-11","version":"0.032"}],"vulnerabilities":null,"www":"https://metacpan.org/dist/Atomic-Pipe"}
