.
D 2022-04-20T12:03:02.917
J assignee nobody
J closer nobody
J cmimetype text/x-fossil-wiki
J comment In\s2014,\sin\sorder\sto\sresolve\ssegmentation\sfaults\stested\sfor\sby\siocmd-21.[12],\r\ncommit\s[13886141d8b3acc7]\sadded\sa\sreference\scounting\sscheme\sfor\schannel\r\nbuffers.\s\sThis\sscheme\smostly\snegates\sthe\sbuffer\srecycling\sthat\r\n<code>RecycleBuffer()</code>\sattempts.\s\sA\sbetter\sfix\swas\snot\sreadily\savailable,\r\nand\sthe\scost\sof\sallocating\snew\sbuffers\sis\sprobably\susually\sinsignificant\r\ncompared\sto\sthe\scost\sof\sIO\sanyway.\s\sThe\sresult\ssince\sthen\sis\sthat\sfor\severy\r\n4096\sbytes\swritten\sto\sa\schannel,\sa\snew\sbuffer\sis\sallocated.
J is_private 0
J login pooryorick
J priority 5\sMedium
J resolution None
J severity Minor
J status Open
J submitter pooryorick
J subsystem 25.\sChannel\sSystem
J title buffer\sallocation\son\severy\scall\sto\sWrite\sin\stclIO.c
J type Bug
K a12ad5c4bd7efcf22906c25feb9a7bebb0aadc5a
U pooryorick
Z 65a7440b4bed9b6d6de5c4e21c5aedb9