Skip to content

Commit

Permalink
Merge pull request #162 from svalee/mark-succesfull-fix
Browse files Browse the repository at this point in the history
mark any connection sucessful if server responded
  • Loading branch information
hellysmile authored Apr 20, 2019
2 parents 35af76d + f14743a commit aefda4f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion aioelasticsearch/transport.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,10 +278,11 @@ async def _perform_request(
raise

else:
self.connection_pool.mark_live(connection)

if method == 'HEAD':
return 200 <= status < 300

self.connection_pool.mark_live(connection)
if data:
data = self.deserializer.loads(
data, headers.get('content-type'),
Expand Down

0 comments on commit aefda4f

Please sign in to comment.