fd_set fdexcep;
struct timeval timeout_tv;
long timeout;
+ CURLMsg *msg;
CURLMcode merr;
- int ret, handles, maxfd;
+ int ret, handles, maxfd, n;
i_assert(post->conn->posting);
/* everything sent successfully */
return;
}
+ msg = curl_multi_info_read(post->conn->curlm, &n);
+ if (msg != NULL && msg->msg == CURLMSG_DONE &&
+ msg->data.result != CURLE_OK) {
+ i_error("fts_solr: curl post failed: %s",
+ curl_easy_strerror(msg->data.result));
+ break;
+ }
/* everything wasn't sent - wait. just use select,
since libcurl interface is easiest with it. */