From: Adam Dickmeiss Date: Wed, 25 Apr 2012 07:47:59 +0000 (+0200) Subject: Make check_proxy, you know ... work X-Git-Tag: v1.3.33~3 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=2b6396f68d1f478f77af3ab8bba007aaccb2624e;p=metaproxy-moved-to-github.git Make check_proxy, you know ... work --- diff --git a/src/filter_zoom.cpp b/src/filter_zoom.cpp index 194fb8b..41a8aca 100644 --- a/src/filter_zoom.cpp +++ b/src/filter_zoom.cpp @@ -1878,7 +1878,7 @@ static bool wait_conn(COMSTACK cs, int secs) yaz_poll_add(pfd.input_mask, yaz_poll_except); if (cs->io_pending && CS_WANT_WRITE) yaz_poll_add(pfd.input_mask, yaz_poll_write); - else if (cs->io_pending & CS_WANT_READ) + if (cs->io_pending & CS_WANT_READ) yaz_poll_add(pfd.input_mask, yaz_poll_read); pfd.fd = cs_fileno(cs); @@ -1919,6 +1919,8 @@ bool yf::Zoom::Impl::check_proxy(const char *proxy) if (!wait_conn(conn, proxy_timeout)) break; } + if (ret == 0) + outcome = true; } } cs_close(conn);