--- a/libpurple/protocols/jabber/bosh.c Mon Nov 20 20:28:06 2017 -0600
+++ b/libpurple/protocols/jabber/bosh.c Sat Nov 25 22:28:44 2017 +0800
@@ -68,7 +68,6 @@
@@ -212,7 +211,6 @@
conn->path = g_strdup_printf("/%s", path);
- conn->pipelining = TRUE;
if (purple_ip_address_is_valid(host))
js->serverFQDN = g_strdup(js->user->domain);
@@ -285,12 +283,6 @@
if (purple_debug_is_verbose())
debug_dump_http_connections(conn);
- /* Easy solution: Does everyone involved support pipelining? Hooray! Just use
- * one TCP connection! */
- return conn->connections[0]->state == HTTP_CONN_CONNECTED ?
- conn->connections[0] : NULL;
/* First loop, look for a connection that's ready */
for (i = 0; i < NUM_HTTP_CONNECTIONS; ++i) {
if (conn->connections[i] &&
@@ -465,27 +457,6 @@
-jabber_bosh_disable_pipelining(PurpleBOSHConnection *bosh)
- /* Do nothing if it's already disabled */
- purple_debug_info("jabber", "BOSH: Disabling pipelining on conn %p\n",
- bosh->pipelining = FALSE;
- if (bosh->connections[1] == NULL) {
- bosh->connections[1] = jabber_bosh_http_connection_init(bosh);
- http_connection_connect(bosh->connections[1]);
- /* Shouldn't happen; this should be the only place pipelining
static void jabber_bosh_connection_received(PurpleBOSHConnection *conn, xmlnode *node) {
JabberStream *js = conn->js;
@@ -726,11 +697,6 @@
- if (conn->bosh->pipelining) {
- /* Hmmmm, fall back to multiple connections */
- jabber_bosh_disable_pipelining(conn->bosh);
/* If the server disconnected us without any requests, let's
* just wait until we have something to send before we reconnect
@@ -807,7 +773,6 @@
if (!g_ascii_strncasecmp(tmp, "close", strlen("close"))) {
- jabber_bosh_disable_pipelining(conn->bosh);