]> granicus.if.org Git - libevent/commit
Allow evbuffer_read() to split across more than 2 iovecs
authorNick Mathewson <nickm@torproject.org>
Thu, 11 Mar 2010 04:39:30 +0000 (23:39 -0500)
committerNick Mathewson <nickm@torproject.org>
Thu, 11 Mar 2010 04:39:30 +0000 (23:39 -0500)
commite470ad3c354c586a3a995ce3a1fe7d093ebf999c
tree6d2573ced1cd219d52d79d598e62875c4d8ad9c0
parent6f47bd12ed27085f68573a02dfa2e2761eb1e6b0
Allow evbuffer_read() to split across more than 2 iovecs

Previously it would only accept 2 iovecs at most, because our
previous_to_last nonsense didn't let it take any more.  This forced us
to do more reallocations in some cases when an extra small malloc
would have sufficed.
buffer.c