On Thu, 2010-10-14 at 20:25 +0530, Asankha C. Perera wrote: > Hi Oleg > > Apparently the limit value on the ByteArray instance is miscalculated > > for some reason. At this moment I can't think of a cause leading to such > > condition. So, a reproducer would be very help. > > > // subtract the length of the longest chunk header > // 12345678\r\n > avail -= 10; > > Should the above be avail -= 12 since we need to terminate the chunk > with another \r\n ? >
You are right. Should be 12. This is not _that_ a major problem, though, as this logic is intended to avoid unnecessary buffer expansion only. Worst case, the buffer will have to expand in order to accommodate just 2 bytes. Should be fixed, though, no discussion. Oleg > cheers > asankha > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@hc.apache.org For additional commands, e-mail: dev-h...@hc.apache.org