Skip to content

Commit bb46af6

Browse files
committed
Remove global socket timeout of inyoka
This only causes tracebacks during local development after the Django update. For long lasting workers in production gunicorn has a default timeout of 30s → <https://docs.gunicorn.org/en/stable/settings.html#timeout> This should be fair enough. (There could be also an additionally timeout in the haproxy-setup for ubuntuusers.de)
1 parent ede2262 commit bb46af6

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

inyoka/__init__.py

-4
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@
1717

1818

1919
from .celery_app import app as celery_app # noqa
20-
import socket
21-
22-
# Set a global socket timeout to avoid blocking worker processes:
23-
socket.setdefaulttimeout(10.0)
2420

2521
# Inyoka version is updated through bumpversion and can stay hardcoded here.
2622
INYOKA_VERSION = "v0.24.5"

0 commit comments

Comments
 (0)