riemannc fix connection truncation while receiving a lot of data