1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-24 09:25:01 +00:00

sysutils/py-salt: Increase receive buffer size to prevent a hanging minion

PR:		271367
Reported by:	Johan Söllvander <jsollvander_axcient_dot_com>, kevans
This commit is contained in:
Kirill Ponomarev 2023-05-16 13:53:29 +02:00
parent 75c0974f4d
commit 0d7e53d131
2 changed files with 11 additions and 1 deletions

View File

@ -1,6 +1,6 @@
PORTNAME= salt
PORTVERSION= 3005.1
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= sysutils python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}

View File

@ -0,0 +1,10 @@
--- salt/ext/tornado/iostream.py.orig 2023-05-16 11:50:28 UTC
+++ salt/ext/tornado/iostream.py
@@ -1116,6 +1116,7 @@ class IOStream(BaseIOStream):
future = self._connect_future = TracebackFuture()
try:
self.socket.connect(address)
+ self.socket.setsockopt(socket.SOL_SOCKET, socket.SO_SNDBUF, 524288)
except socket.error as e:
# In non-blocking mode we expect connect() to raise an
# exception with EINPROGRESS or EWOULDBLOCK.