The BufferedInputStream#skip(n) implementation would return after skipping less than n bytes if there were less than n bytes available, which can happen due to network latency. This PR replaces that usage with an implementation that keeps buffering input until n bytes are skipped, even if that blocks the thread.
The BufferedInputStream#skip(n) implementation would return after skipping less than n bytes if there were less than n bytes available, which can happen due to network latency. This PR replaces that usage with an implementation that keeps buffering input until n bytes are skipped, even if that blocks the thread.