Subject: EOF status after failed read

EOF status after failed read

From: Casper Langemeijer <>
Date: Sat, 23 Jun 2012 09:08:36 +0200

Hi All,

I've discovered that libssh2_channel_eof() does not return 1 after
libssh2_channel_read_ex() has returned an error (in my case

The php binding ignored the error, and assumed channel_eof() would
indicate if a channel was open. Of course I fixed this in the binding, I
think there is almost no good reason for ignoring a error return value.

Is the behaviour of libssh2_channel_eof()intentional?

Greetings, Casper

Received on 2012-06-23