getkaiwa / kaiwa

[UNMAINTAINED] A modern XMPP Web client
http://getkaiwa.com
MIT License
1.33k stars 154 forks source link

[Bug] Request timed out #25

Open SamuelMoraesF opened 9 years ago

SamuelMoraesF commented 9 years ago

When I try to login, Kaiwa join into an infinite loading loop(and the connection timed out). Prosody logs:

Apr 21 00:59:01 socket  debug   server.lua: accepted new client connection from 198.50.144.252:57947 to 5280
Apr 21 00:59:01 http.server     debug   Firing event: POST mozillabrasil.org.br/http-bind
Apr 21 00:59:01 mod_bosh        debug   Handling new request table: 0x13dd190: <body xmlns="http://jabber.org/protocol/httpbind" xmlns:xmpp="urn:xmpp:xbosh" rid="78980$
----------
Apr 21 00:59:01 mod_bosh        debug   BOSH body open (sid: 1ea5d8a9-1698-43c3-9687-5b8e640bad26)
Apr 21 00:59:01 mod_bosh        debug   Session 1ea5d8a9-1698-43c3-9687-5b8e640bad26 has 1 out of 1 requests open
Apr 21 00:59:01 mod_bosh        debug   and there are 0 things in the send_buffer:
Apr 21 00:59:01 mod_bosh        debug   Have nothing to say, so leaving request unanswered for now
Apr 21 00:59:28 mod_bosh        debug   table: 0x13dd770 was soon to timeout (at 1429592371, now 1429592371), sending empty response
Apr 21 00:59:28 mod_bosh        debug   We have an open request, so sending on that
Apr 21 00:59:28 mod_bosh        debug   Request destroyed: table: 0x13dd770
Apr 21 00:59:28 bosh1ea5d8a9-1698-43c3-9687-5b8e640bad26        debug   BOSH session marked as inactive (for 60s)
Apr 21 00:59:28 socket  debug   server.lua: closed client handler and removed socket from list
Apr 21 00:59:29 socket  debug   server.lua: accepted new client connection from 198.50.144.252:58176 to 5280
...

Current config:

{   
    "isDev": true,
    "http": {
        "baseUrl": "http://kaiwa.dev.mozillabrasil.org.br",
        "port": 8086,
        "key": "./fakekeys/privatekey.pem",
        "cert": "./fakekeys/certificate.pem"
    },
    "session": {
        "secret": "nGCnv0Ow5F1FNSANDptcW3wW4pdlcFY8ANSC3B8T"
    },
    "server": {
        "name": "Mozilla Brasil",
        "domain": "mozillabrasil.org.br",
        "muc": "conference.mozillabrasil.org.br",
        "startup": "groupchat/room%40chat.example.com",
        "admin": "admin"
    }
}

We're using the last code from this repository with prosody 0.9 and BOSH.

Kaiwa: http://kaiwa.dev.mozillabrasil.org.br BOSH: http://kaiwa.dev.mozillabrasil.org.br/http-bind

PS.: I removed the LDAP feature(uninstalling the package, removing the require line on server.js and the LDAP section on dev_config.json