Re: [Libevent-users] Re: Dead or wrong code

2011-06-08 Thread Nick Mathewson
On Tue, Jun 7, 2011 at 5:58 PM, Nir Soffer wrote: > > On Jun 7, 2011, at 8:48 PM, Gilad Benjamini wrote: > 955         buf->first = chain; 956         if (chain) { 957             chain->misalign += remaining; 958             chain->off -= remaining; 959         } >>> >>>

Re: [Libevent-users] Re: Dead or wrong code

2011-06-07 Thread Nir Soffer
On Jun 7, 2011, at 8:48 PM, Gilad Benjamini wrote: 955 buf->first = chain; 956 if (chain) { 957 chain->misalign += remaining; 958 chain->off -= remaining; 959 } Draining all the buffer trigger this code. Adding an assert in line 957 cause the t

RE: [Libevent-users] Re: Dead or wrong code

2011-06-07 Thread Gilad Benjamini
>> 955 buf->first = chain; >> 956 if (chain) { >> 957 chain->misalign += remaining; >> 958 chain->off -= remaining; >> 959 } > >Draining all the buffer trigger this code. > >Adding an assert in line 957 cause the tests to die, so this code is >certa