NSAKEY / prosody-modules

Automatically exported from code.google.com/p/prosody-modules
MIT License
1 stars 1 forks source link

TCP Proxy Issues #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Just tried to get http page.

<iq type="set" id="newconn1" to="tcp.ut.onego.ru">
    <open xmlns='http://jabber.org/protocol/ibb'
        sid='connection1'
        stanza='message'
        xmlns:tcp='http://prosody.im/protocol/tcpproxy'
        tcp:host='dersd.games.onego.ru'
        tcp:port='80' />
</iq>

<iq from="tcp.ut.onego.ru" type="result" to="dersd@games.onego.ru/rawr"
id="newconn1"/>

<iq id='kr91n475'
    to='tcp.ut.onego.ru'
    type='set'>
  <data xmlns='http://jabber.org/protocol/ibb' seq='0' sid='connection1'>
GET /time.php
Host: dersd.games.onego.ru
  </data>
</iq>

May 13 09:13:18 xmppserver_listener error   Traceback[s2s]:
/usr/lib/prosody/net/server_select.lua:362: bad argument #1 to 'string_len'
(string expected, got nil): stack traceback:
    /usr/lib/prosody/net/xmppserver_listener.lua:51: in function
</usr/lib/prosody/net/xmppserver_listener.lua:51>
    [C]: in function 'string_len'
    /usr/lib/prosody/net/server_select.lua:362: in function 'write'
    mod_tcpproxy.lua:87: in function 'component'
    /usr/lib/prosody/core/componentmanager.lua:70: in function
'component_handle_stanza'
    /usr/lib/prosody/core/stanza_router.lua:156: in function 'core_post_stanza'
    /usr/lib/prosody/core/stanza_router.lua:100: in function 'core_process_stanza'
    /usr/lib/prosody/net/xmppserver_listener.lua:56: in function
</usr/lib/prosody/net/xmppserver_listener.lua:56>
    [C]: in function 'xpcall'
    /usr/lib/prosody/net/xmppserver_listener.lua:56: in function 'cb_handlestanza'
    /usr/lib/prosody/core/xmlhandlers.lua:119: in function
</usr/lib/prosody/core/xmlhandlers.lua:109>
    [C]: in function 'parse'
    /usr/lib/prosody/net/xmppserver_listener.lua:83: in function 'data'
    /usr/lib/prosody/net/xmppserver_listener.lua:157: in function
</usr/lib/prosody/net/xmppserver_listener.lua:135>
    (tail call): ?
    /usr/lib/prosody/net/server_select.lua:823: in function
</usr/lib/prosody/net/server_select.lua:808>
    [C]: in function 'xpcall'
    /usr/lib/prosody/../../bin/prosody:387: in function 'loop'
    /usr/lib/prosody/../../bin/prosody:453: in main chunk
    [C]: ?

Original issue reported on code.google.com by mro...@gmail.com on 13 May 2010 at 6:16

GoogleCodeExporter commented 9 years ago
I forgot about Base64, but that's not a point. There is Traceback. :)

Original comment by mro...@gmail.com on 13 May 2010 at 9:44

GoogleCodeExporter commented 9 years ago
Fixed, thanks.

Original comment by MWild1 on 19 May 2010 at 2:03