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 75e1f785ae905ccecb2c34317ea887e7252ff4b3..d0951eea8949352f83938672c83802694ed2a776 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,