tel8618217223380 / jap

Automatically exported from code.google.com/p/jap
0 stars 0 forks source link

UDP cause JAP_LOCAL_WS_NODE-3.0.0-SNAPSHOT-2 crash #54

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. execute JAP_LOCAL_WS_NODE-3.0.0-SNAPSHOT-2
2. run "QQ International"(China's largest IM provider) , set JAP as socks5 
proxy, set Server Type to TCP
3. login

What is the expected output? What do you see instead?
JAP should be working with QQ's TCP server, and 
JAP_LOCAL_WS_PYTHON_WINDOWS-3.0.0-SNAPSHOT-3 DOES work. 
But JAP_LOCAL_WS_NODE-3.0.0-SNAPSHOT-2 crash with this log:
remoteConnection.message
remoteConnection.message: messageLength=0
remoteConnection.message
remoteConnection.message: messageLength=586
server.connect
error: unsupported command code: 0x03 (associate a UDP port)

buffer.js:343
    throw new RangeError('attempt to write beyond buffer bounds');
    ^
RangeError: attempt to write beyond buffer bounds
    at Buffer.write (buffer.js:343:11)
    at Socket.<anonymous> (E:\Dropbox\Proxy\JAP\JAP_LOCAL_WS_NODE\JAP\JAP_LOCAL_
WS.js:172:13)
    at Socket.EventEmitter.emit (events.js:95:17)
    at Socket.<anonymous> (_stream_readable.js:736:14)
    at Socket.EventEmitter.emit (events.js:92:17)
    at emitReadable_ (_stream_readable.js:408:10)
    at emitReadable (_stream_readable.js:404:5)
    at readableAddChunk (_stream_readable.js:165:9)
    at Socket.Readable.push (_stream_readable.js:127:10)
    at TCP.onread (net.js:526:21)

What version of the product are you using? On what operating system?
JAP_LOCAL_WS_NODE-3.0.0-SNAPSHOT-2, On Windows XP

Please provide any additional information below.
JAP_LOCAL_WS_PYTHON_WINDOWS-3.0.0-SNAPSHOT-3 works, but the node version not 
works, I am not sure whether this problem also affect other udp-based-client or 
not.

Original issue reported on code.google.com by binkto...@gmail.com on 30 Jul 2013 at 4:00

GoogleCodeExporter commented 8 years ago
Can you test attached JAP_LOCAL_WS.js (copy to /JAP)?

Original comment by jeroen.v...@gmail.com on 31 Jul 2013 at 9:25

Attachments:

GoogleCodeExporter commented 8 years ago
no more crash when login, but crash every time when I quit the client:
localConnection.close
remoteConnection.message
remoteConnection.message: messageLength=33
remoteConnection.close

E:\Dropbox\Proxy\JAP\JAP_LOCAL_WS_NODE\node_modules\streamws\lib\Receiver.js:220

  if (!this.state.fragmentedOperation) this.unfragmentedBufferPool.reset(true)
                 ^
TypeError: Cannot read property 'fragmentedOperation' of null
    at Receiver.endPacket (E:\Dropbox\Proxy\JAP\JAP_LOCAL_WS_NODE\node_modules\s
treamws\lib\Receiver.js:220:18)
    at Receiver.opcodes.2.finish (E:\Dropbox\Proxy\JAP\JAP_LOCAL_WS_NODE\node_mo
dules\streamws\lib\Receiver.js:443:12)
    at Receiver.<anonymous> (E:\Dropbox\Proxy\JAP\JAP_LOCAL_WS_NODE\node_modules
\streamws\lib\Receiver.js:431:31)
    at Receiver.add (E:\Dropbox\Proxy\JAP\JAP_LOCAL_WS_NODE\node_modules\streamw
s\lib\Receiver.js:87:24)
    at CleartextStream.firstHandler (E:\Dropbox\Proxy\JAP\JAP_LOCAL_WS_NODE\node
_modules\streamws\lib\WebSocket.js:480:22)
    at CleartextStream.EventEmitter.emit (events.js:95:17)
    at CleartextStream.<anonymous> (_stream_readable.js:736:14)
    at CleartextStream.EventEmitter.emit (events.js:92:17)
    at emitReadable_ (_stream_readable.js:408:10)
    at _stream_readable.js:401:7

Original comment by binkto...@gmail.com on 31 Jul 2013 at 5:06

GoogleCodeExporter commented 8 years ago
I have updated https://github.com/jvansteirteghem/streamws

Can you reinstall JAP_LOCAL_WS_NODE and JAP_REMOTE_WS_NODE and test?
(NM.bat installs https://github.com/jvansteirteghem/streamws)

Original comment by jeroen.v...@gmail.com on 1 Aug 2013 at 8:45

GoogleCodeExporter commented 8 years ago
this version is more stable now, thanks!

Original comment by fifa...@gmail.com on 1 Aug 2013 at 4:09