[Libevent-users] a question of evbuffer_pullup

2012-08-23 Thread simon zhang
I don't understand “must first ensure that the front of the buffer really is contiguous”. I can get 100 bytes from evbuffer by evbuffer_pullup() or evbuffer_remove(). evbuffer_pullup():get some contiguous data. evbuffer_remove():get some discontinuous data??? Some discontinuous data??Why we need

Re: [Libevent-users] bufferevent_openssl: readcb not always called for last partial read

2012-08-23 Thread Nick Mathewson
On Wed, Aug 22, 2012 at 1:04 PM, Hochhaus, Andrew wrote: > Thanks. > > On Wed, Aug 22, 2012 at 11:33 AM, Nick Mathewson wrote: >> Hm. Looking at how the output is used, I think that the tristate >> output format is probably a mistake. It wants to return both "did I >> read any data" *and* "am I