]> granicus.if.org Git - libevent/commit
Fix logic in correcting high values from FIONREAD
authorNick Mathewson <nickm@torproject.org>
Fri, 28 May 2010 19:05:32 +0000 (15:05 -0400)
committerNick Mathewson <nickm@torproject.org>
Fri, 28 May 2010 19:05:32 +0000 (15:05 -0400)
commit3467f2fa3bbff0dab6865a0ed08475ed3573c230
tree8783af078a1c8ea3ffa9e6a03dbaf8e078c15757
parent0798dd1247407fcbae7c8401a41a082b64060e1d
Fix logic in correcting high values from FIONREAD

The old logic made sense back when buffer.c was an enormous linear
buffer, but it doesn't make any sense for the chain-based
implementation.

This patch also refactors the ioctl{socket}? call into its own function.
buffer.c