Socket connect() on iOS blocks for more than 30 seconds -


i have no clue causing this, using socket on ios , calling connect() makes app hang 30s 1 minute or more. , when returns, half of time connection failed, if server working.

i using low level sockets, since avoid having objective c code @ all. cause this?

while behavior normal, can set socket nonblocking before connecting, , able other things while waiting it.

use select see if it's writeable , when returns true, connect has completed (one way or another).

details how detect if connection successful or not here


Comments

Popular posts from this blog

mod rewrite - Using "?" when rewriting the URL -

.htaccess: Transfer name to index.php if not directory public -

Admob integration with pygame in android -