You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not completely sure if this is a collateral problem but from the tests i've performed it seems that a flash exception is thrown when the websocket is invalidated before any javascript callback has been called.
My application sends a keepalive packet every 30 seconds to the server. If I suddenly stop the server while connection is in progress, first of all, the client doesn't notice it (no event is triggered by flash bridge). Second, when the heartbeat is sent, flash bridge throws this error:
Error calling method on NPObject!
the javascript line in question is the send function, as expected:
Error:Error #2002:Operation attempted on invalid socket.
at flash.net::Socket/flush()
at com.hurlant.crypto.tls::TLSSocket/flush()
at net.gimite.websocket::WebSocket/send()
at net.gimite.websocket::WebSocketMain/send()
at Function/http://adobe.com/AS3/2006/builtin::apply()
at flash.external::ExternalInterface$/_callIn()
at Function/<anonymous>()
so, in short, when socket is invalidated (for example, connection broken) no event is triggered, and it seems i can't catch that error. Any clue?
The text was updated successfully, but these errors were encountered:
Thanks for the report. How do you "suddenly stop the server"? I use em-websocket and tried to kill it with kill -INT and kill -KILL but I couldn't reproduce it (onclose event fires as usual). Probably it can happen when the client somehow doesn't notice the socket close immediately, but noticed that when it tries to send something? I'm thinking of firing "error" event on exception in send().
I'm not completely sure if this is a collateral problem but from the tests i've performed it seems that a flash exception is thrown when the websocket is invalidated before any javascript callback has been called.
My application sends a keepalive packet every 30 seconds to the server. If I suddenly stop the server while connection is in progress, first of all, the client doesn't notice it (no event is triggered by flash bridge). Second, when the heartbeat is sent, flash bridge throws this error:
the javascript line in question is the send function, as expected:
looking into flash debugger i see:
so, in short, when socket is invalidated (for example, connection broken) no event is triggered, and it seems i can't catch that error. Any clue?
The text was updated successfully, but these errors were encountered: