From: Sergey Kitov Date: Tue, 12 Dec 2017 14:07:52 +0000 (+0200) Subject: plugins/fts: Return back comment about Server Error. X-Git-Tag: 2.3.0.rc1~126 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e7e3f4055116e8747df8dc45bbf859e129d4dcfc;p=thirdparty%2Fdovecot%2Fcore.git plugins/fts: Return back comment about Server Error. --- diff --git a/src/plugins/fts/fts-parser-tika.c b/src/plugins/fts/fts-parser-tika.c index 19ea80fa82..e75fd770a0 100644 --- a/src/plugins/fts/fts-parser-tika.c +++ b/src/plugins/fts/fts-parser-tika.c @@ -111,6 +111,10 @@ fts_tika_parser_response(const struct http_response *response, break; default: if (response->status / 100 == 5) { + /* Server Error - the problem could be anything (in Tika or + HTTP server or proxy) and might be retriable, but Tika has + trouble processing some documents and throws up this error + every time for those documents. */ parser->parser.may_need_retry = TRUE; i_free(parser->parser.retriable_error_msg); parser->parser.retriable_error_msg =