Skip to content

Commit

Permalink
Better sniff url
Browse files Browse the repository at this point in the history
Rate limit · GitHub

Access has been restricted

You have triggered a rate limit.

Please wait a few minutes before you try again;
in some cases this may take up to an hour.

honzakral committed Feb 13, 2014
1 parent 139dbbb commit d9fd799
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion elasticsearch/transport.py
Original file line number Diff line number Diff line change
@@ -173,7 +173,7 @@ def sniff_hosts(self):
for c in self.connection_pool.connections + self.seed_connections:
try:
# use small timeout for the sniffing request, should be a fast api call
_, headers, node_info = c.perform_request('GET', '/_nodes',
_, headers, node_info = c.perform_request('GET', '/_nodes/_all/clear',
timeout=self.sniff_timeout)
node_info = self.deserializer.loads(node_info, headers.get('content-type'))
break

0 comments on commit d9fd799

Please sign in to comment.