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

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

.htaccess - Matching full URL in RewriteCond -