how to stop a connection attempt?
-
- Posts: 16
- Joined: 10 Oct 2013, 12:54
how to stop a connection attempt?
because smart fox connection from iOS device can take way too long time up to 4 min to return with a result that it can't connect. we want to stop the connection attempt with our own timeout. how will we do that?
Re: how to stop a connection attempt?
There isn't a way that I know of.
The problem is not at the API level but it is caused by the OS TCP timeout. Once you start a connection you will need to wait for connection event, sooner or later
The best you can do is trashing the current SmartFox object and start a new one.
The problem is not at the API level but it is caused by the OS TCP timeout. Once you start a connection you will need to wait for connection event, sooner or later
The best you can do is trashing the current SmartFox object and start a new one.
-
- Posts: 16
- Joined: 10 Oct 2013, 12:54
Re: how to stop a connection attempt?
yeah thats what we are trying to do.
but we cant properly release smartFox, when we try to do that during a connection attempt the app freezes.
in debug it looks like BitSwarmClient is holding the thread.
so when is it safe to release SmartFox?
but we cant properly release smartFox, when we try to do that during a connection attempt the app freezes.
in debug it looks like BitSwarmClient is holding the thread.
so when is it safe to release SmartFox?
Re: how to stop a connection attempt?
I don't think there's a way to interrupt it, then.
Return to “SFS2X iPhone / iPad / OSX API”
Who is online
Users browsing this forum: No registered users and 52 guests