Hello all,
 
there are one small bug in this function.
and when package of data is more than 2048 bytes exception occurs
problem come from loop where we pass trough original source
 
line 347
 
int toEat = ( bytesToEat  > 2048 ? 2048 : bytesToEat );
 
must be replaced

int toEat = ((bytesToEat - totalBytesEaten) > 2048 ? 2048 : bytesToEat - totalBytesEaten);

in this case calcuation of size is ok, and function works perfect
 
 
regards,
decho

Reply via email to