Index: res/res_agi.c =================================================================== --- res/res_agi.c (revision 31175) +++ res/res_agi.c (working copy) @@ -193,7 +193,7 @@ pfds[0].fd = s; pfds[0].events = POLLOUT; while (poll(pfds, 1, MAX_AGI_CONNECT) != 1) { - if (errno != EINTR) { + if (errno != EINTR && errno != EINPROGRESS) { ast_log(LOG_WARNING, "Connect to '%s' failed: %s\n", agiurl, strerror(errno)); close(s); return