As a follow up in my previous question, I'm doing some testing, and i have strange behavior.
I developed my program using Eclipse in Windows, and so far it works just fine (if the possible leak is ignored)
But the deployment server runs linux.
Both are x86_64 platforms.
When i run the client in windows it works ok, and everything behave as expected, BUT when running in linux a strange error appears. And one event in the chain is not raised.
Ill post a log from both consoles to show the issue:
The log in the windows box is as follows:
Code: Select all
11:23:46,163 INFO [ActiveMQ Session Task-1] sfsInterface.SFSManager - Attempting Connection to Smartfox Server
11:23:47,465 INFO [New I/O client worker #1-1] core.EventDispatcher - Dispatching event OnConnect to 1 listeners
11:23:47,466 INFO [New I/O client worker #1-1] core.EventDispatcher - Dispatching event connect to 1 listeners
11:23:47,842 INFO [New I/O client worker #1-1] core.SFSProtocolCodec - Writing message Binary size: 36
12 00 03 00 03 62 69 6E 01 01 00 02 63 6C 08 00 .....bin....cl..
06 4A 61 76 61 3A 3A 00 03 61 70 69 08 00 05 30 .Java::..api...0
2E 39 2E 38 .9.8
11:23:47,853 INFO [New I/O client worker #1-1] core.SFSIOHandler - Data written: Binary size: 53
12 00 03 00 01 61 03 00 00 00 01 63 02 00 00 01 .....a.....c....
70 12 00 03 00 03 62 69 6E 01 01 00 02 63 6C 08 p.....bin....cl.
00 06 4A 61 76 61 3A 3A 00 03 61 70 69 08 00 05 ..Java::..api...
30 2E 39 2E 38 0.9.8
11:23:48,191 INFO [New I/O client worker #1-1] core.EventDispatcher - Dispatching event OnData to 1 listeners
11:23:48,191 INFO [New I/O client worker #1-1] core.SFSIOHandler - Data Read: Binary size: 80
80 00 4D 12 00 03 00 01 61 03 00 00 00 01 63 02 ..M.....a.....c.
00 00 01 70 12 00 03 00 02 74 6B 08 00 20 38 38 ...p.....tk...88
65 62 38 32 37 34 37 34 30 39 64 35 65 63 36 39 eb82747409d5ec69
35 66 36 65 39 66 64 66 64 30 38 31 63 37 00 02 5f6e9fdfd081c7..
63 74 04 00 00 04 00 00 02 6D 73 04 00 7A 12 00 ct.......ms..z..
11:23:48,191 INFO [New I/O client worker #1-1] core.SFSIOHandler - Handling New Packet of size 80
11:23:48,192 INFO [New I/O client worker #1-1] core.SFSIOHandler - Handling Header Size. Length: 79 (small)
11:23:48,192 INFO [New I/O client worker #1-1] core.SFSIOHandler - Data size is 77
11:23:48,192 INFO [New I/O client worker #1-1] core.SFSIOHandler - Handling Data: 77, previous state: 0/77
11:23:48,193 INFO [New I/O client worker #1-1] core.SFSIOHandler - <<< Packet Complete >>>
11:23:48,194 INFO [New I/O client worker #1-1] controllers.SystemController - Message: ResHandshake { Message id: 0 }
{ Dump: }
(utf_string) tk: 88eb82747409d5ec695f6e9fdfd081c7
(int) ct: 1024
(int) ms: 8000000
11:23:48,197 INFO [New I/O client worker #1-1] client.SmartFox - Handshake response: tk => {0}, ct => {1}
11:23:48,197 INFO [New I/O client worker #1-1] core.EventDispatcher - Dispatching event connection to 1 listeners
11:23:48,198 INFO [New I/O client worker #1-1] eventHandlers.SFSEventHandler - Connected to Server. Now sending login request.
The console output from the linux box
Code: Select all
19 Sep 2011 12:38:51,326 INFO [ActiveMQ Session Task-1] blg.sfsInterface.SFSManager - Attempting Connection to Smartfox Server
19 Sep 2011 12:38:51,366 INFO [New I/O client worker #1-1] client.core.EventDispatcher - Dispatching event OnConnect to 1 listeners
19 Sep 2011 12:38:51,367 INFO [New I/O client worker #1-1] client.core.EventDispatcher - Dispatching event connect to 1 listeners
19 Sep 2011 12:38:51,376 INFO [New I/O client worker #1-1] client.core.SFSProtocolCodec - Writing message Binary size: 36
12 00 03 00 03 62 69 6E 01 01 00 02 63 6C 08 00 .....bin....cl..
06 4A 61 76 61 3A 3A 00 03 61 70 69 08 00 05 30 .Java::..api...0
2E 39 2E 38 .9.8
19 Sep 2011 12:38:51,386 INFO [New I/O client worker #1-1] client.core.SFSIOHandler - Data written: Binary size: 53
12 00 03 00 01 61 03 00 00 00 01 63 02 00 00 01 .....a.....c....
70 12 00 03 00 03 62 69 6E 01 01 00 02 63 6C 08 p.....bin....cl.
00 06 4A 61 76 61 3A 3A 00 03 61 70 69 08 00 05 ..Java::..api...
30 2E 39 2E 38 0.9.8
19 Sep 2011 12:38:51,388 INFO [New I/O client worker #1-1] client.core.EventDispatcher - Dispatching event OnData to 1 listeners
19 Sep 2011 12:38:51,388 INFO [New I/O client worker #1-1] client.core.SFSIOHandler - Data Read: Binary size: 80
80 00 4D 12 00 03 00 01 61 03 00 00 00 01 63 02 ..M.....a.....c.
00 00 01 70 12 00 03 00 02 74 6B 08 00 20 66 35 ...p.....tk...f5
37 34 62 31 31 35 36 66 64 61 37 34 66 61 30 65 74b1156fda74fa0e
36 61 65 30 32 33 63 62 64 32 64 61 31 66 00 02 6ae023cbd2da1f..
63 74 04 00 00 04 00 00 02 6D 73 04 00 7A 12 00 ct.......ms..z..
19 Sep 2011 12:38:51,389 INFO [New I/O client worker #1-1] client.core.SFSIOHandler - Handling New Packet of size 80
19 Sep 2011 12:38:51,389 INFO [New I/O client worker #1-1] client.core.SFSIOHandler - Handling Header Size. Length: 79 (small)
19 Sep 2011 12:38:51,389 INFO [New I/O client worker #1-1] client.core.SFSIOHandler - Data size is 77
19 Sep 2011 12:38:51,389 INFO [New I/O client worker #1-1] client.core.SFSIOHandler - Handling Data: 77, previous state: 0/77
19 Sep 2011 12:38:51,390 INFO [New I/O client worker #1-1] client.core.SFSIOHandler - <<< Packet Complete >>>
19 Sep 2011 12:38:51,391 INFO [New I/O client worker #1-1] client.controllers.SystemController - Message: ResHandshake { Message id: 0 }
{¬â Dump: }
(utf_string) tk: f574b1156fda74fa0e6ae023cbd2da1f
(int) ct: 1024
(int) ms: 8000000
19 Sep 2011 12:38:51,391 WARN [New I/O client worker #1-1] client.controllers.SystemController - No handler exists for this event: 0
19 Sep 2011 12:39:20,923 INFO [New I/O client worker #1-1] client.core.EventDispatcher - Dispatching event OnDisconnect to 1 listeners
19 Sep 2011 12:39:20,923 INFO [New I/O client worker #1-1] client.core.EventDispatcher - Dispatching event disconnect to 1 listeners
19 Sep 2011 12:39:20,923 INFO [New I/O client worker #1-1] client.core.EventDispatcher - Dispatching event connectionLost to 1 listeners
19 Sep 2011 12:39:20,923 INFO [New I/O client worker #1-1] sfsInterface.eventHandlers.SFSEventHandler - Disconnected from SmartFox Server, Connection Dropped
The bold logs are from my classes.
As you can see in the linux box the response from the server is not properly handled, and my class never receives the event to continue the process and the connection is dropped.
The line missing from the Linux run is the one marked
Code: Select all
client.SmartFox - Handshake response: tk => {0}, ct => {1}
And the process stalls and never continues, this is similar to the issue in the C#/Unity API some threads talk about.
The Server itself is running in Linux (the same box i was testing the client in).
Please some help with this.
Ivan