www.libssh2.org | Daily snapshots | Mailing list archive | Docs | Examples | github

Archive Index This month's Index

Subject: Re: Network hardware failure cases undesired behaviour in libssh2_channel_write_ex

Re: Network hardware failure cases undesired behaviour in libssh2_channel_write_ex

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 28 May 2012 16:14:48 +0200 (CEST)

On Mon, 28 May 2012, Olof Tångrot wrote:

> Version: 1.4.2. returns -5 which seems to indicate a fault in the
> key-exchange.
>
> 1) A correct fault code should be resturned.

Can you provide trace logs for when the breakage and this error occur?

> 2) Is it possible to avoid the blocking when the hardware is disconnected?

Are you using blocking or non-blocking mode at the time? TCP is not really
equipped to detect "disconnection" that easily.

-- 
  / daniel.haxx.se

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2012-05-28

the libssh2 team