]> code.citadel.org Git - citadel.git/blobdiff - citadel/event_client.h
Add error handler for failing DNS requests; the Client should be able to take its...
[citadel.git] / citadel / event_client.h
index cb833e0683c6cdc7e45d7ebb13be51445e1e9630..b2c368db2400c7d6bacd93b8df58a9271ff36c49 100644 (file)
@@ -102,6 +102,7 @@ struct AsyncIO {
                Terminate,    /* shutting down... */
                Timeout,      /* Timeout handler; may also be connection timeout */
                ConnFail,     /* What to do when one connection failed? */
+               DNSFail,      /* the dns lookup didn't work out. */
                ShutdownAbort,/* we're going down. make your piece. */ 
                NextDBOperation; /* Perform Database IO */
 
@@ -163,7 +164,7 @@ void InitC_ares_dns(AsyncIO *IO);
        do { \
                sta = curl_easy_setopt(chnd, (CURLOPT_##s), (v)); \
                if (sta)  {                                             \
-                       CtdlLogPrintf(CTDL_ERR, "error setting option " #s " on curl handle: %s", curl_easy_strerror(sta)); \
+                       syslog(LOG_ERR, "error setting option " #s " on curl handle: %s", curl_easy_strerror(sta)); \
        } } while (0)