portal 3.5.0__tar.gz → 3.5.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {portal-3.5.0/portal.egg-info → portal-3.5.1}/PKG-INFO +1 -1
- {portal-3.5.0 → portal-3.5.1}/portal/__init__.py +1 -1
- {portal-3.5.0 → portal-3.5.1}/portal/client_socket.py +4 -3
- {portal-3.5.0 → portal-3.5.1/portal.egg-info}/PKG-INFO +1 -1
- {portal-3.5.0 → portal-3.5.1}/LICENSE +0 -0
- {portal-3.5.0 → portal-3.5.1}/MANIFEST.in +0 -0
- {portal-3.5.0 → portal-3.5.1}/README.md +0 -0
- {portal-3.5.0 → portal-3.5.1}/portal/batching.py +0 -0
- {portal-3.5.0 → portal-3.5.1}/portal/buffers.py +0 -0
- {portal-3.5.0 → portal-3.5.1}/portal/client.py +0 -0
- {portal-3.5.0 → portal-3.5.1}/portal/contextlib.py +0 -0
- {portal-3.5.0 → portal-3.5.1}/portal/packlib.py +0 -0
- {portal-3.5.0 → portal-3.5.1}/portal/poollib.py +0 -0
- {portal-3.5.0 → portal-3.5.1}/portal/process.py +0 -0
- {portal-3.5.0 → portal-3.5.1}/portal/server.py +0 -0
- {portal-3.5.0 → portal-3.5.1}/portal/server_socket.py +0 -0
- {portal-3.5.0 → portal-3.5.1}/portal/sharray.py +0 -0
- {portal-3.5.0 → portal-3.5.1}/portal/thread.py +0 -0
- {portal-3.5.0 → portal-3.5.1}/portal/utils.py +0 -0
- {portal-3.5.0 → portal-3.5.1}/portal.egg-info/SOURCES.txt +0 -0
- {portal-3.5.0 → portal-3.5.1}/portal.egg-info/dependency_links.txt +0 -0
- {portal-3.5.0 → portal-3.5.1}/portal.egg-info/requires.txt +0 -0
- {portal-3.5.0 → portal-3.5.1}/portal.egg-info/top_level.txt +0 -0
- {portal-3.5.0 → portal-3.5.1}/pyproject.toml +0 -0
- {portal-3.5.0 → portal-3.5.1}/requirements.txt +0 -0
- {portal-3.5.0 → portal-3.5.1}/setup.cfg +0 -0
- {portal-3.5.0 → portal-3.5.1}/setup.py +0 -0
- {portal-3.5.0 → portal-3.5.1}/tests/test_batching.py +0 -0
- {portal-3.5.0 → portal-3.5.1}/tests/test_client.py +0 -0
- {portal-3.5.0 → portal-3.5.1}/tests/test_errfile.py +0 -0
- {portal-3.5.0 → portal-3.5.1}/tests/test_pack.py +0 -0
- {portal-3.5.0 → portal-3.5.1}/tests/test_process.py +0 -0
- {portal-3.5.0 → portal-3.5.1}/tests/test_server.py +0 -0
- {portal-3.5.0 → portal-3.5.1}/tests/test_socket.py +0 -0
- {portal-3.5.0 → portal-3.5.1}/tests/test_thread.py +0 -0
@@ -238,9 +238,10 @@ class ClientSocket:
|
|
238
238
|
sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_KEEPIDLE, after)
|
239
239
|
sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_KEEPINTVL, every)
|
240
240
|
sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_KEEPCNT, fails)
|
241
|
-
|
242
|
-
|
243
|
-
|
241
|
+
if hasattr(socket, 'TCP_USER_TIMEOUT'): # Linux
|
242
|
+
sock.setsockopt(
|
243
|
+
socket.IPPROTO_TCP, socket.TCP_USER_TIMEOUT,
|
244
|
+
1000 * (after + every * fails))
|
244
245
|
if sys.platform == 'darwin':
|
245
246
|
sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1)
|
246
247
|
sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_KEEPALIVE, every)
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|