Page 1 of 1

connection problem, linux, AS3 API, flash player 10.0.12.36

Posted: 03 Dec 2008, 10:04
by baczy
hi,
I'm not sure if this is a bug or something security related. But with the flash player 10.0.12.36 running under linux and the latest AS3 API the client won't connect to the server. Same client works without problems on windows/mac machines.

server 1.6.3 is running on a remote linux machine (default settings), client is also running from a remote site.

I placed some trace statements in my code to narrow down the problem:

on windows:

Code: Select all

load config.xml
success
connect ip=xx.xx.xxx.xx, port=9339
[Event type="connect" bubbles=false cancelable=false eventPhase=2]
[Sending]: <msg t='sys'><body action='verChk' r='0'><ver v='156' /></body></msg>

[ProgressEvent type="socketData" bubbles=false cancelable=false eventPhase=2 bytesLoaded=92 bytesTotal=0]
[ RECEIVED ]: <cross-domain-policy><allow-access-from domain='*' to-ports='9339' /></cross-domain-policy>, (len: 91)
[ProgressEvent type="socketData" bubbles=false cancelable=false eventPhase=2 bytesLoaded=54 bytesTotal=0]
[ RECEIVED ]: <msg t='sys'><body action='apiOK' r='0'></body></msg>, (len: 53)
'sys', 'apiOK'
client receives apiOK message which fires the onConnection event.

on ubuntu:

Code: Select all

load config.xml
success
connect ip=xx.xx.xxx.xx, port=9339
[Event type="connect" bubbles=false cancelable=false eventPhase=2]
[Sending]: <msg t='sys'><body action='verChk' r='0'><ver v='156' /></body></msg>

[ProgressEvent type="socketData" bubbles=false cancelable=false eventPhase=2 bytesLoaded=92 bytesTotal=0]
[ RECEIVED ]: <cross-domain-policy><allow-access-from domain='*' to-ports='9339' /></cross-domain-policy>, (len: 91)
[Event type="close" bubbles=false cancelable=false eventPhase=2]
client doesn't receive the onConnection event.

best,
michael

Posted: 04 Dec 2008, 13:25
by Lapo
Quite strange, but certainly possible.
We had similar problems under Linux even with FP 9 :(

However...
I am also running Ubuntu 8.10 with that same release of the FP10 and I didn't have any problems with various different SFS projects that are running live.
I did the test just last week after having upgraded, as I was curious to see how the fp10 had progressed.
I haven't encountered show stopper so far...

Maybe take a look at this doc and make sure you're following the guidelines -> http://www.smartfoxserver.com/whitepape ... index.html

Posted: 04 Dec 2008, 23:09
by baczy
I made a very simple swf: http://www.polygonal.de/dev/fp10linux/test.swf. can you test it ? you should get a "connecting..." message, then "connected!" if the connection was established.

Posted: 05 Dec 2008, 08:06
by Lapo
I confirm it. Does work under Windows and MacOS, does not work under Linux :( (All using FP10)

However I don't understand exactly what is going on.
Do you have the server running on a different IP than the swf?
Can you explain the whole setup?

thnx

Posted: 05 Dec 2008, 08:14
by Lapo
Addition ...
We have a similar test online here -> http://showcase.smartfoxserver.com/connectionAS3/
Same result as with your test
However this works perfectly -> http://showcase.smartfoxserver.com/battleFarm/

I will investigate