From 8324c22d679fbe8343ecd1aa3cbb13504776bf91 Mon Sep 17 00:00:00 2001 From: Callan Bryant Date: Sat, 10 Jun 2017 09:01:52 +0100 Subject: [PATCH] disable worker GET check until upstream fix https://github.com/aio-libs/aiohttp/issues/1955 --- dsportal/worker.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/dsportal/worker.py b/dsportal/worker.py index 27df560..c0a08bb 100644 --- a/dsportal/worker.py +++ b/dsportal/worker.py @@ -25,10 +25,13 @@ async def websocket_client(loop,worker,host,key): # check auth while True: try: - async with session.get(url) as resp: - if resp.status != 400: # upgrade to ws pls - log.error(await resp.text()) - sys.exit(1) + # TODO re-enable when + # https://github.com/aio-libs/aiohttp/issues/1955 is fixed check + # auth, worker lock, etc + #async with session.get(url) as resp: + # if resp.status != 400: # upgrade to ws pls + # log.error(await resp.text()) + # sys.exit(1) connection = session.ws_connect( url=url,