[q][i]Originally posted by: [b][b]Neeeol[/b][/b][/i]
I tested this idea by setting up a timer and checking
NetConnection.isConnected every 3 seconds. It kept reporting that the
connection was good even after I stopped the Flash Server. I don't know what
that means, but it wasn't what I expected.[/q]
You really checked all events like netconnection.close and
netconnection.failed ?
http://www.adobe.com/livedocs/fms/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?c ontext=LiveDocs_Parts&file=00000627.html
We do use the method mentioned by Jay too (by using a client- and server-sided
interval that checks the client's ping-time and ket the client reconnect or
disconnect the dirty client on the server to maintain a clear state of all
connected clients. The events however should trigger ; they do overhere tbh.
Trace the netconnection object and pull some plugs from your PC, switch/hub or
router to simulate a faulty network connection. Please do note that Windows
detects an unplugged networkcable which results in a "hard disconnect". If
you'd setup a simple hub/switch between your PC and your Lan you can pull the
networkcable from the hub/switch to the rest of the LAN which emulates a
connection-problem "in the middle" which cannot be detected by your (Windows)
OS.
We call this a soft disconnect and it can take 10-30 seconds before your Flash
client will notice a "disconnect" from the server. This is all related to
timeouts of tcp-packets and stuff which is way too deep and cannot be altered
anyway. You should however understand that network-timeouts of 5 to 10 seconds
CAN happen with a heavily loaded FMS and/or congested network.