Re: [Libevent-users] [PATCH] evbuffer_search_range fails when searching the last byte

2011-06-13 Thread Nir Soffer
On Jun 14, 2011, at 12:06 AM, Nick Mathewson wrote: On Wed, Jun 8, 2011 at 8:38 PM, Nir Soffer wrote: [...] Also, there's another problem with my original patch. By my logic, if the buffer is empty and has no chains at all, then evbuffer_ptr_set(buf, ptr, 0, EVBUFFER_PTR_SET) ought to work

Re: [Libevent-users] Question on event-test.c sample program

2011-06-13 Thread Nick Mathewson
On Sat, Jun 11, 2011 at 6:19 AM, Ed Day wrote: > I see in the event-test.c sample program the disclaimer that it does > not work on non-UNIX platforms (which to me means Windows, maybe > others?). Just Windows as far as I know. >  It looks like this is an implementation of a named pipe. > This h

Re: [Libevent-users] [PATCH] evbuffer_search_range fails when searching the last byte

2011-06-13 Thread Nick Mathewson
On Wed, Jun 8, 2011 at 8:38 PM, Nir Soffer wrote: [...] >> Also, there's another problem with my original patch.  By my logic, if >> the buffer is empty and has no chains at all, then >> evbuffer_ptr_set(buf, ptr, 0, EVBUFFER_PTR_SET) ought to work, but >> even with my patch it still doesn't.  Mo