dovecot-2.2: fts-tika, fts-solr: Added timeouts to requests so t...

dovecot at dovecot.org dovecot at dovecot.org
Fri Mar 13 14:04:58 UTC 2015


details:   http://hg.dovecot.org/dovecot-2.2/rev/4f8bfc6673a3
changeset: 18346:4f8bfc6673a3
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Mar 13 16:04:10 2015 +0200
description:
fts-tika, fts-solr: Added timeouts to requests so they aren't attempted infinitely.

diffstat:

 src/plugins/fts-solr/solr-connection.c |  2 ++
 src/plugins/fts/fts-parser-tika.c      |  2 ++
 2 files changed, 4 insertions(+), 0 deletions(-)

diffs (24 lines):

diff -r f409deb63c40 -r 4f8bfc6673a3 src/plugins/fts-solr/solr-connection.c
--- a/src/plugins/fts-solr/solr-connection.c	Fri Mar 13 16:04:01 2015 +0200
+++ b/src/plugins/fts-solr/solr-connection.c	Fri Mar 13 16:04:10 2015 +0200
@@ -128,6 +128,8 @@
 		http_set.max_redirects = 1;
 		http_set.max_attempts = 3;
 		http_set.debug = debug;
+		http_set.connect_timeout_msecs = 5*1000;
+		http_set.request_timeout_msecs = 60*1000;
 		solr_http_client = http_client_init(&http_set);
 	}
 
diff -r f409deb63c40 -r 4f8bfc6673a3 src/plugins/fts/fts-parser-tika.c
--- a/src/plugins/fts/fts-parser-tika.c	Fri Mar 13 16:04:01 2015 +0200
+++ b/src/plugins/fts/fts-parser-tika.c	Fri Mar 13 16:04:10 2015 +0200
@@ -68,6 +68,8 @@
 		http_set.max_pipelined_requests = 1;
 		http_set.max_redirects = 1;
 		http_set.max_attempts = 3;
+		http_set.connect_timeout_msecs = 5*1000;
+		http_set.request_timeout_msecs = 60*1000;
 		http_set.debug = user->mail_debug;
 		tika_http_client = http_client_init(&http_set);
 	}


More information about the dovecot-cvs mailing list