[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Socket error: Unknown error


Hi Mike,

the message is set in ssh_socket_exception_callback() in session.c. The
"Unknown error" is the output of strerror(). It is probably easiest to
fire up your debugger as there are multiple callback functions involved
in handling socket events. Your exception is probably fired in
ssh_socket_pollcallback() in socket.c.

Regards
Tilo

Am 22.05.2017 um 16:43 schrieb Mike DePaulo:
> Hi. 
> Over on X2Go Client for Windows (which uses libssh 0.7.x as an SSH
> client), a user is getting the message when attempting to connect to a
> server "Socket error: Unknown error".
> http://lists.x2go.org/pipermail/x2go-user/2017-May/004420.html
> (The message formatting got messed up in the link. I have the original
> email though.)
> 
> I believe this message is coming from libssh src/session.c . I do not
> know where the string "Unknown error" comes from though. 
> 
> I found this. I suppose I could modify X2Go Client to print out the
> error code, if that would be helpful.
> http://api.libssh.org/stable/group__libssh__error.html
> 
> Note that I cannot reproduce his issue.
> 
> Please advise.
> 
> Thanks,
> -Mike
> Volunteer X2Go Client for Windows maintainer


References:
Socket error: Unknown errorMike DePaulo <mikedep333@xxxxxxxxx>
Archive administrator: postmaster@lists.cynapses.org