strophe / libstrophe

A simple, lightweight C library for writing XMPP clients
http://strophe.im/libstrophe
Other
401 stars 163 forks source link

Problems with status and error codes in the connection handler #122

Closed matisszilard closed 4 years ago

matisszilard commented 6 years ago

Description:

The strophe responds with same status and error codes for different cases. Ex.: The status code is XMPP_CONN_DISCONNECT and the error code is 0 for cases:

Steps to reproduce:

  1. Connecting to a non xmpp server

Tested on: macOS (10.13.3)

Is it possible to handle the mentioned situations in the latest release of the strophe library? Is it possible to request the root cause of the connection failure? ex.: check if the socket communication or the authentication failed

pasis commented 4 years ago

Closing this ticket and leave #123 to track the issue.