Forgot a bit of a previous commit.
Extend features timeout, bind timeout, and legacy timeouts to 15 seconds.
This commit is contained in:
@@ -25,10 +25,10 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* FIXME: these should be configurable */
|
/* FIXME: these should be configurable */
|
||||||
#define FEATURES_TIMEOUT 5000 /* 5 seconds */
|
#define FEATURES_TIMEOUT 15000 /* 15 seconds */
|
||||||
#define BIND_TIMEOUT 2000 /* 2 seconds */
|
#define BIND_TIMEOUT 15000 /* 15 seconds */
|
||||||
#define SESSION_TIMEOUT 15000 /* 15 seconds */
|
#define SESSION_TIMEOUT 15000 /* 15 seconds */
|
||||||
#define LEGACY_TIMEOUT 2000 /* 2 seconds */
|
#define LEGACY_TIMEOUT 15000 /* 15 seconds */
|
||||||
|
|
||||||
static void _auth(xmpp_conn_t * const conn);
|
static void _auth(xmpp_conn_t * const conn);
|
||||||
static void _handle_open_tls(xmpp_conn_t * const conn);
|
static void _handle_open_tls(xmpp_conn_t * const conn);
|
||||||
|
|||||||
@@ -153,9 +153,11 @@ const char *xmpp_conn_get_pass(const xmpp_conn_t * const conn);
|
|||||||
void xmpp_conn_set_pass(xmpp_conn_t * const conn, const char * const pass);
|
void xmpp_conn_set_pass(xmpp_conn_t * const conn, const char * const pass);
|
||||||
|
|
||||||
int xmpp_connect_client(xmpp_conn_t * const conn,
|
int xmpp_connect_client(xmpp_conn_t * const conn,
|
||||||
const char * const domain,
|
const char * const domain,
|
||||||
xmpp_conn_handler callback,
|
const char * const altdomain,
|
||||||
void * const userdata);
|
unsigned short altport,
|
||||||
|
xmpp_conn_handler callback,
|
||||||
|
void * const userdata);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
int xmpp_connect_component(conn, name)
|
int xmpp_connect_component(conn, name)
|
||||||
|
|||||||
Reference in New Issue
Block a user