All pastes #60437 Raw Edit

Stuff

public text v1 · immutable
#60437 ·published 2006-05-31 23:03 UTC
rendered paste body
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