OpenSSH 2.4.0 patch call..

Damien Miller djm at mindrot.org
Sun Dec 31 10:33:51 EST 2000


On Fri, 29 Dec 2000 mouring at etoh.eviladmin.org wrote:

> I know this does not solve Protocol 1 hanging, but can you give me a
> reason why the following patch won't work for Protocol 2 to hang the
> 'sleep 30&exit' issue.  It tells OpenSSH to explicitly drain the input
> buffers if the output buffers are closed.  (Of course the same trick does
> not work under protocol 1 ecause channel_write_fail1() is not called soon
> enough.)

It doesn't work - it brings back the loss of data problem where the
fd from the client is closed before all the data has been read:

[djm at mothra openssh]$ ./ssh -p 2222 localhost "dd if=/dev/zero bs=10240 count=10" | wc -c
select: Bad file descriptor
  71680

-d

-- 
| ``We've all heard that a million monkeys banging on | Damien Miller -
| a million typewriters will eventually reproduce the | <djm at mindrot.org>
| works of Shakespeare. Now, thanks to the Internet, / 
| we know this is not true.'' - Robert Wilensky UCB / http://www.mindrot.org







More information about the openssh-unix-dev mailing list