connection problem, linux, AS3 API, flash player 10.0.12.36

You think you've found a bug? Please report it here.

Moderators: Lapo, Bax

Post Reply
baczy
Posts: 20
Joined: 12 Apr 2008, 16:40

connection problem, linux, AS3 API, flash player 10.0.12.36

Post 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
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post 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
Lapo
--
gotoAndPlay()
...addicted to flash games
baczy
Posts: 20
Joined: 12 Apr 2008, 16:40

Post 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.
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post 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
Lapo
--
gotoAndPlay()
...addicted to flash games
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post 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
Lapo
--
gotoAndPlay()
...addicted to flash games
Post Reply