correctly set the route attribute in BOSH connections.
This commit is contained in:
parent
3c294252f0
commit
9a01ffcdd9
1 changed files with 9 additions and 9 deletions
|
@ -413,15 +413,15 @@ class NonBlockingBOSH(NonBlockingTransport):
|
||||||
'xmlns:xmpp': 'urn:xmpp:xbosh'})
|
'xmlns:xmpp': 'urn:xmpp:xbosh'})
|
||||||
else:
|
else:
|
||||||
t = BOSHBody(
|
t = BOSHBody(
|
||||||
attrs={ 'content': self.bosh_content,
|
attrs={ 'content': self.bosh_content,
|
||||||
'hold': str(self.bosh_hold),
|
'hold': str(self.bosh_hold),
|
||||||
'route': '%s:%s' % (self.route_host, self.route_port),
|
'route': 'xmpp:%s:%s' % (self.route_host, self.route_port),
|
||||||
'to': self.bosh_to,
|
'to': self.bosh_to,
|
||||||
'wait': str(self.bosh_wait),
|
'wait': str(self.bosh_wait),
|
||||||
'xml:lang': self.bosh_xml_lang,
|
'xml:lang': self.bosh_xml_lang,
|
||||||
'xmpp:version': '1.0',
|
'xmpp:version': '1.0',
|
||||||
'ver': '1.6',
|
'ver': '1.6',
|
||||||
'xmlns:xmpp': 'urn:xmpp:xbosh'})
|
'xmlns:xmpp': 'urn:xmpp:xbosh'})
|
||||||
self.send_BOSH((t, True))
|
self.send_BOSH((t, True))
|
||||||
|
|
||||||
def start_disconnect(self):
|
def start_disconnect(self):
|
||||||
|
|
Loading…
Add table
Reference in a new issue