Skip to content
Tcl Source Code Artifact [e989ba0703]
Login

Artifact [e989ba0703]

Artifact e989ba07034a2928870048bd46e9c0175453b3d3653f51c80b5d0e483f9cb631:

Ticket change [e989ba0703] - Closed ticket [e99187025f9687eb|e99187025f]: <i>socket-2.12 fails on OpenBSD: the server child runs out of memory</i> plus 8 other changes by jan.nijtmans on 2026-10-18 20:24:50.
D 2026-10-18T20:24:50.251
J assignee jan.nijtmans
J closedate 2461332.3505816087
J closer jan.nijtmans
J comment socket_inet-2.12\sand\ssocket_inet6-2.12\sfail\son\sOpenBSD\s7.9:\sthe\schild\sprocess\s(the\sserver)\sdies\swith\s"unable\sto\salloc\s4168\sbytes"\sand\sleaves\sa\score\sfile\sof\s1.6\sGB,\swhich\scan\sfill\s/tmp.\r\n\r\nThe\sserver\swrites\slines\sof\s720000\sbytes\sto\sa\snon-blocking\ssocket\sin\sa\sloop,\swith\s<code>after\s0</code>,\suntil\s<nowiki>[chan\sputs]</nowiki>\sfails\safter\sthe\sclient\sclosed\sthe\sconnection.\sWith\sunread\sdata\sin\sthe\sclient's\sreceive\sbuffer,\sOpenBSD\sreports\sthe\serror\sto\sthe\swriter\sonly\safter\sabout\s5\sseconds\s(FreeBSD\safter\s0.05\ss,\sLinux\simmediately).\sMeanwhile\sall\sthe\sdata\sis\squeued\sin\smemory,\suntil\sthe\sprocess\sexceeds\sits\sdata\ssize\slimit.\r\n\r\nThis\sis\sa\sproblem\sof\sthe\stest,\snot\sof\sthe\ssocket\schannel:\sthe\serror\sis\sreported\scorrectly\swhen\sit\scomes.\r\n\r\nProposed\sfix\sin\sbranch\s[/timeline?r=test-socket-2.12-openbsd|test-socket-2.12-openbsd]:\sthe\sserver\sdoes\snot\squeue\smore\sdata\swhile\sthe\sprevious\sline\sis\snot\ssent\syet.
J icomment Fixed\sin\s[03198ed31cf64020|trunk],\sbackported\sto\score-9-0-branch\r\n\r\nMany\sthanks!
J login jan.nijtmans
J mimetype text/x-fossil-wiki
J resolution Fixed
J status Closed
K e99187025f9687eb9c2a6f2066f2e97dcd040cd0
U jan.nijtmans
Z 4e8fcc3c9b5f8d90fd78c17cd55f3c90