SendXtMessage() responses don't make it back to some clients

Post here your questions about Actionscript and Java server side extensions development.

Moderators: Lapo, Bax

ThomasLund
Posts: 1297
Joined: 14 Mar 2008, 07:52
Location: Sweden

Post by ThomasLund »

Hye

No news no. I havent had time to look into things yet. I can spend an hour or two today, but without anything to go on in terms of exceptions - and especially if things run fine in one environment but not another - doesnt bode well for me finding anything in that time frame.

Just wanted to let you know.

Edit:
2 things that hit me:

Have you taken a look at your network setup? Are the Unity clients in a different segment of the network? Do the routers/firewalls in between your admin client and the server have idle TCP connection timeouts (heard of load balancers with 60 second timeouts as default)? Have you tried sitting right next to the server with your admin client without anything between it?

Also - if this is a matter of the connection silently being dropped by the network - you might need to incorporate a "keep alive" ping to the server while it crunches on your numbers.

/Thomas
ThomasLund
Posts: 1297
Joined: 14 Mar 2008, 07:52
Location: Sweden

Post by ThomasLund »

OK - made a console app, sends message to extension, extension waits for 120 seconds with reply, sends reply.

It works here (run locally without network equipment in between). Issue is not reproducable.

So I would put the issue to rest here and point fingers at network equipment cutting your connection. Doesnt mean that there cannot be an issue in the API - but since its not reproducable - and there is no error/exception to go with - I cant take this further myself.

If you want me to work further on this, I would suggest a paid consultancy on a per hour basis from me. Will happily help try to isolate the issue.

Best
Thomas
Ross Przybylski
Posts: 70
Joined: 24 Jan 2008, 03:56
Contact:

Post by Ross Przybylski »

What version of the client API are you using? I encountered a similar issue of extension commands not being received on the client side after I updated to 1.6.3 AS3 API. My program was working just fine before the update, so I examined the SmartFoxClient.as file and discovered a change to how the byteBuffer variable was used in the handleSocketData function. I was able to correct the issue by making a small change to the code.

See my original post with solution here:
http://forums.smartfoxserver.com/viewtopic.php?p=31797
Check out my SFS Multiplayer Game:
www.heromages.com
Post Reply