Closed GoogleCodeExporter closed 8 years ago
> Another issue now, we have it on all our machines running NXB, local
> and external from the jappix.com XMPP server.
This is good news!! :-)
> When connecting, client-side, NXB replies to the first request, but not
> the second one: the http connection is kept, the client still sends a
> new http request each 20seconds and the BOSH server replies well to the
> last request with an empty <body />.
This is what I think is happening. Currently, NXB optimizes the case of
multiple streams (since that is what it was written for) and due to this
optimization, it returns a session creation response even before a connection
to the upstream XMPP server is made. What this means is that till the
connection (or in this case, DNS resolution fails) is made, the client will
keep re-sending empty bodies. What seems to be happening here is that the proxy
can not either resolve DNS (is resolv.conf set) or connect to the jappix.com
server.
Original comment by dhruvb...@gmail.com
on 2 Jun 2011 at 7:33
This is happening because the SRV lookup is taking too long (since the
jappix.com domain is returning a CNAME record for an SRV query). Either that is
wrong or the SRV module needs to be updated to handle this case. Will
investigate and update accordingly.
Original comment by dhruvb...@gmail.com
on 2 Jun 2011 at 10:07
I changed the DNS records server side, and removed any wildcard to use manual
DNS configuraton (subdomain per subdomain).
Here is the full Bind9 file:
@ 86400 IN A 95.142.175.37
@ 86400 IN AAAA 2001:4b98:dc0:51:216:3eff:fe5d:90a1
anonymous 86400 IN CNAME @
bind 86400 IN CNAME @
irc 86400 IN CNAME @
logs 86400 IN CNAME @
mini 86400 IN CNAME @
msn 86400 IN CNAME @
muc 86400 IN CNAME @
project 86400 IN CNAME @
pubsub 86400 IN CNAME @
static 86400 IN CNAME @
vjud 86400 IN CNAME @
www 86400 IN CNAME @
_xmpp-client._tcp 86400 IN SRV 10 0 5222 @
_xmpp-client._tcp.anonymous 86400 IN SRV 10 0 5222 @
_xmpp-server._tcp 86400 IN SRV 10 0 5269 @
_xmpp-server._tcp.anonymous 86400 IN SRV 10 0 5269 @
_xmpp-server._tcp.irc 86400 IN SRV 10 0 5269 @
_xmpp-server._tcp.msn 86400 IN SRV 10 0 5269 @
_xmpp-server._tcp.muc 86400 IN SRV 10 0 5269 @
_xmpp-server._tcp.pubsub 86400 IN SRV 10 0 5269 @
_xmpp-server._tcp.vjud 86400 IN SRV 10 0 5269 @
I have to wait next morning to let you know if NXB works with that, because of
the TTL which is one day.
Original comment by vanaryon
on 3 Jun 2011 at 8:50
Okay, after the DNS cache was purged and the new entries got, using valid SRV
records all went fine.
So you'd better try to use some kind of regex to avoid using a bad DNS reply as
a valid reply ;)
Original comment by vanaryon
on 4 Jun 2011 at 8:43
Yeah, should perform the validation for SRV records
Original comment by dhruvb...@gmail.com
on 4 Jun 2011 at 9:41
Original comment by vanaryon
on 5 Jun 2011 at 7:02
Original issue reported on code.google.com by
vanaryon
on 2 Jun 2011 at 7:15