git: 0d7e53d13126 - main - sysutils/py-salt: Increase receive buffer size to prevent a hanging minion

From: Kirill Ponomarev <krion_at_FreeBSD.org>
Date: Tue, 16 May 2023 11:55:39 UTC
The branch main has been updated by krion:

URL: https://cgit.FreeBSD.org/ports/commit/?id=0d7e53d13126b21df43ab7dfd726844feaff58ac

commit 0d7e53d13126b21df43ab7dfd726844feaff58ac
Author:     Kirill Ponomarev <krion@FreeBSD.org>
AuthorDate: 2023-05-16 11:53:29 +0000
Commit:     Kirill Ponomarev <krion@FreeBSD.org>
CommitDate: 2023-05-16 11:53:29 +0000

    sysutils/py-salt: Increase receive buffer size to prevent a hanging minion
    
    PR:             271367
    Reported by:    Johan Söllvander <jsollvander_axcient_dot_com>, kevans
---
 sysutils/py-salt/Makefile                                 |  2 +-
 sysutils/py-salt/files/patch-salt_ext_tornado_iostream.py | 10 ++++++++++
 2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/sysutils/py-salt/Makefile b/sysutils/py-salt/Makefile
index b32abac6a4de..25bd78b9f2e3 100644
--- a/sysutils/py-salt/Makefile
+++ b/sysutils/py-salt/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	salt
 PORTVERSION=	3005.1
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	sysutils python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
diff --git a/sysutils/py-salt/files/patch-salt_ext_tornado_iostream.py b/sysutils/py-salt/files/patch-salt_ext_tornado_iostream.py
new file mode 100644
index 000000000000..4a163d249474
--- /dev/null
+++ b/sysutils/py-salt/files/patch-salt_ext_tornado_iostream.py
@@ -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.