PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Edgelib hanging on socket disconnect (iPhone)

martinreddy · 31 Mar 2009, 18:38 UTC
I have an Edgelib app running on the iPhone that hangs on exit. The app looks like it has quit (the iPhone returns to its main icon menu), but in the background the app is actually hung trying to shutdown the socket connection. After this happens, rerunning the app then hangs on startup.

The stack trace looks like:

recvfrom
recv
ecNetSockShutdown
ClassEConnect::Disconnect
ClassEConnect::ReleaseConnection
ClassEConnect::Cleanup
ClassEConnect::~ClassEConnect
ClassEdge::~ClassEdge
...

The app does create a socket connection, but I cannot see what I can do to prevent the socket disconnect from hanging the app. Looks like it's trying to receive some data from the server before shutting down. Has anyone else seen anything like this before? Any suggestions?

Cheers,

Martin.
Hi Martin,

Your issue is currently under investigation.
We found the same behavior on 2.2.1, but strangely enough, on 3.0 beta 1 everything runs fine. We need to dive a little deeper.
Planet9Dave · 14 May 2009, 20:32 UTC
Hi Edge folks,

Have you been able to determine why the EdgeLib socket connection hangs on disconnect, in iPhoneOS 2.2.1? Do you have a proposed fix or workaround?

Thanks,
Dave
Hi Dave,

Can you tell us if you're using HTTP calls, or raw sockets? We've recently fixed an issue with HTTP calls, it could be possible that your issue is already fixed for the next EDGELIB version.