0.14.6: disable strophe stream management

libstrophe 0.12 supports (and enables by default) stream management. The
xmppipe session disconnects when strophe and xmppipe both try to handle
the stream acknowledgement.

* disable strophe stream management
* TODO: if strophe SM is available, disable xmppipe SM
master
Michael Santos 1 year ago
parent 548a1590f5
commit d8a6890873

@ -1,4 +1,4 @@
/* Copyright (c) 2015-2022, Michael Santos <michael.santos@gmail.com>
/* Copyright (c) 2015-2023, Michael Santos <michael.santos@gmail.com>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@ -78,6 +78,10 @@ int main(int argc, char **argv) {
int ch = 0;
#ifdef XMPP_CONN_FLAG_DISABLE_SM
flags |= XMPP_CONN_FLAG_DISABLE_SM;
#endif
if (setvbuf(stdout, NULL, _IOLBF, 0) < 0)
err(EXIT_FAILURE, "setvbuf");

@ -1,4 +1,4 @@
/* Copyright (c) 2015-2022, Michael Santos <michael.santos@gmail.com>
/* Copyright (c) 2015-2023, Michael Santos <michael.santos@gmail.com>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@ -27,7 +27,7 @@
#include "strtonum.h"
#endif
#define XMPPIPE_VERSION "0.14.5"
#define XMPPIPE_VERSION "0.14.6"
#define XMPPIPE_RESOURCE "xmppipe"
#define XMPPIPE_STREQ(a, b) (strcmp((a), (b)) == 0)

Loading…
Cancel
Save