From a0a1357f0634151b16051186f895de71b1e18f70 Mon Sep 17 00:00:00 2001 From: nanshihui Date: Thu, 13 Oct 2016 16:06:27 +0800 Subject: [PATCH] avoid timeout when fist set up connection --- .idea/workspace.xml | 153 ++++++++++++++++------------- elasticsearchmanage/elastictool.py | 2 +- 2 files changed, 85 insertions(+), 70 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 2d70100..4a1e0a0 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -3,9 +3,7 @@ - - - + @@ -72,46 +70,58 @@ - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + + + + + + + + + + + + + @@ -127,7 +137,7 @@ - + @@ -139,7 +149,7 @@ - + @@ -149,7 +159,7 @@ - + @@ -161,25 +171,13 @@ - + - - - - - - - - - - - - @@ -220,7 +218,6 @@ @@ -259,8 +257,8 @@ DEFINITION_ORDER - @@ -289,7 +287,6 @@ - @@ -363,8 +360,23 @@ + @@ -724,12 +736,12 @@ - + - + @@ -1025,13 +1037,6 @@ - - - - - - - @@ -1053,13 +1058,6 @@ - - - - - - - @@ -1074,19 +1072,10 @@ - - - - - - - - - @@ -1126,7 +1115,7 @@ - + @@ -1136,7 +1125,7 @@ - + @@ -1144,7 +1133,7 @@ - + @@ -1154,7 +1143,7 @@ - + @@ -1172,11 +1161,37 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/elasticsearchmanage/elastictool.py b/elasticsearchmanage/elastictool.py index 09856f9..479244f 100644 --- a/elasticsearchmanage/elastictool.py +++ b/elasticsearchmanage/elastictool.py @@ -13,7 +13,7 @@ import chardet logger = initLog('logs/elastic.log', 2, True) # Define a default Elasticsearch client -# connections.create_connection(hosts=['localhost']) +connections.create_connection(hosts=['localhost']) import base64 def decodestr(msg):