protected void pumpInputStream() {
try {
while (!closeFuture.isClosed()) {
Buffer buffer = session.createBuffer(SshConstants.Message.SSH_MSG_CHANNEL_DATA, 0);
buffer.putInt(recipient);
int wpos1 = buffer.wpos(); // keep buffer position to write data length later
buffer.putInt(0);
int wpos2 = buffer.wpos(); // keep buffer position for data write
buffer.wpos(wpos2 + remoteWindow.getPacketSize()); // Make room
int len = securedRead(in, buffer.array(), wpos2, remoteWindow.getPacketSize()); // read data into buffer
if (len > 0) {