This commit is contained in:
Daniel Hladek 2020-05-11 16:43:39 +02:00
parent 03569d6a59
commit ae760c8e7c
2 changed files with 6 additions and 0 deletions

View File

@ -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 && \ RUN addgroup -S appgroup -g 1000 && \
adduser -u 1000 -S appuser -G appgroup adduser -u 1000 -S appuser -G appgroup
RUN mkdir /app
ADD requirements.txt / ADD requirements.txt /
RUN CASS_DRIVER_BUILD_CONCURRENCY=4 pip install -r /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 RUN pip install https://git.kemt.fei.tuke.sk/dano/websucker-pip/archive/master.zip
WORKDIR /app
ENTRYPOINT ["websuck"] ENTRYPOINT ["websuck"]

View File

@ -216,6 +216,9 @@ class Connection:
elif errno == 16: elif errno == 16:
# 16 HTTP2 # 16 HTTP2
link_status = "bad_connection" link_status = "bad_connection"
elif errno == 92:
# 92 HTTP2 not closed
link_status = "bad_connection"
elif errno == 6: elif errno == 6:
# 60 Unable to resolve dns # 60 Unable to resolve dns
link_status = "bad_connection" link_status = "bad_connection"