Join GitHub today
Prevent no-longer-"useful" buffers from staying in the BufferPool. #407
Previously, when 'receive' pulled a buffer and filled enough space in it to make it cease to be "useful" (i.e. have less remaining space than a certain threshold), it would be left in the BufferPool IORef and overwritten by the next 'receive' call. This broke referential transparency of the ByteStrings and caused corruption of request bodies and, less frequently, protocol synchronization data.
I think I can reproduce the issue more reliably by testing BufferPool
I'll look into it this afternoon.
On Tue, Jul 28, 2015 at 8:54 AM Christopher Reichert <