Partial fix for #11. Correctly calls connection handler on timeout now,
but doesn't yet set the error.
This commit is contained in:
@@ -153,6 +153,7 @@ struct _xmpp_conn_t {
|
||||
xmpp_conn_type_t type;
|
||||
|
||||
xmpp_conn_state_t state;
|
||||
uint64_t timeout_stamp;
|
||||
int error;
|
||||
xmpp_stream_error_t *stream_error;
|
||||
sock_t sock;
|
||||
@@ -184,6 +185,9 @@ struct _xmpp_conn_t {
|
||||
int depth;
|
||||
xmpp_stanza_t *stanza;
|
||||
|
||||
/* timeouts */
|
||||
unsigned int connect_timeout;
|
||||
|
||||
/* event handlers */
|
||||
|
||||
/* stream open handler */
|
||||
|
||||
Reference in New Issue
Block a user