Skip to content

Commit 74d5b95

Browse files
committed
Revert "Set TCP_NODELAY on sockets"
This reverts commit a099217. As get OSError: [Errno 92] Protocol not available in Docker containers - needs further investigation.
1 parent a2e7bce commit 74d5b95

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/hypercorn/config.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,6 @@ def _create_sockets(
246246
except (ValueError, IndexError):
247247
host, port = bind, 8000
248248
sock = socket.socket(socket.AF_INET6 if ":" in host else socket.AF_INET, type_)
249-
sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)
250249
if self.workers > 1:
251250
try:
252251
sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEPORT, 1)

0 commit comments

Comments
 (0)