From ae760c8e7c661860c7abe405ecdc88afc686df5e Mon Sep 17 00:00:00 2001 From: Daniel Hladek Date: Mon, 11 May 2020 16:43:39 +0200 Subject: [PATCH] zz --- Dockerfile | 3 +++ websucker/agent.py | 3 +++ 2 files changed, 6 insertions(+) diff --git a/Dockerfile b/Dockerfile index 06a6bbd..f51153f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,10 @@ RUN apk add --update --no-cache git curl curl-dev vim py3-lxml gcc make libxml2- RUN addgroup -S appgroup -g 1000 && \ adduser -u 1000 -S appuser -G appgroup +RUN mkdir /app + ADD requirements.txt / RUN CASS_DRIVER_BUILD_CONCURRENCY=4 pip install -r /requirements.txt RUN pip install https://git.kemt.fei.tuke.sk/dano/websucker-pip/archive/master.zip +WORKDIR /app ENTRYPOINT ["websuck"] diff --git a/websucker/agent.py b/websucker/agent.py index 4632c9f..96a5b6b 100755 --- a/websucker/agent.py +++ b/websucker/agent.py @@ -216,6 +216,9 @@ class Connection: elif errno == 16: # 16 HTTP2 link_status = "bad_connection" + elif errno == 92: + # 92 HTTP2 not closed + link_status = "bad_connection" elif errno == 6: # 60 Unable to resolve dns link_status = "bad_connection"