CURL: it seems as in case of timeout cURL closes the FD somewhere before - forget...
authorWilfried Goesgens <dothebart@citadel.org>
Wed, 12 Jun 2013 22:27:56 +0000 (00:27 +0200)
committerWilfried Goesgens <dothebart@citadel.org>
Wed, 12 Jun 2013 22:27:56 +0000 (00:27 +0200)
citadel/modules/eventclient/serv_eventclient.c

index 75e1f78..d0951ee 100644 (file)
@@ -164,6 +164,11 @@ gotstatus(int nnrun)
                                EVCURL_syslog(LOG_ERR,
                                              "error performing request: %s\n",
                                              curl_easy_strerror(sta));
+                               if (sta == CURLE_OPERATION_TIMEDOUT)
+                               {
+                                       IO->SendBuf.fd = 0;
+                                       IO->RecvBuf.fd = 0;
+                               }
                        }
                        sta = curl_easy_getinfo(chnd,
                                                CURLINFO_RESPONSE_CODE,