lusid-sdk 2.1.807__py3-none-any.whl → 2.1.808__py3-none-any.whl
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.
lusid/configuration.py
CHANGED
@@ -445,7 +445,7 @@ class Configuration:
|
|
445
445
|
return "Python SDK Debug Report:\n"\
|
446
446
|
"OS: {env}\n"\
|
447
447
|
"Python Version: {pyversion}\n"\
|
448
|
-
"Version of the API: 0.11.
|
448
|
+
"Version of the API: 0.11.7837\n"\
|
449
449
|
"SDK Package Version: {package_version}".\
|
450
450
|
format(env=sys.platform, pyversion=sys.version, package_version=package_version)
|
451
451
|
|
@@ -2,6 +2,7 @@ from typing import Sequence
|
|
2
2
|
import socket
|
3
3
|
import logging
|
4
4
|
from urllib3.connection import HTTPConnection
|
5
|
+
import platform
|
5
6
|
|
6
7
|
__logger__ = logging.getLogger(__name__)
|
7
8
|
|
@@ -24,29 +25,34 @@ def keep_alive_socket_options() -> Sequence:
|
|
24
25
|
Sequence
|
25
26
|
Set of socket options.
|
26
27
|
"""
|
27
|
-
|
28
|
-
|
29
|
-
|
28
|
+
base_options = HTTPConnection.default_socket_options
|
29
|
+
system = platform.system().title()
|
30
|
+
|
31
|
+
if system == "Windows":
|
32
|
+
# Only SO_KEEPALIVE is supported and safe on Windows Server 2016
|
33
|
+
__logger__.info("Setting socket settings for Windows")
|
34
|
+
return base_options + [
|
35
|
+
(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1)
|
36
|
+
]
|
37
|
+
elif system == "Darwin":
|
38
|
+
# macOS specific
|
39
|
+
__logger__.info("Setting socket settings for Darwin (macOS)")
|
40
|
+
TCP_KEEPALIVE = 0x10 # from <netinet/tcp.h>
|
41
|
+
return base_options + [
|
30
42
|
(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1),
|
31
|
-
(socket.IPPROTO_TCP,
|
32
|
-
(socket.IPPROTO_TCP, socket.TCP_KEEPINTVL, TCP_KEEPALIVE_INTERVAL),
|
33
|
-
(socket.IPPROTO_TCP, socket.TCP_KEEPCNT, TCP_KEEP_CNT),
|
43
|
+
(socket.IPPROTO_TCP, TCP_KEEPALIVE, 60)
|
34
44
|
]
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
return HTTPConnection.default_socket_options + [
|
45
|
+
elif system == "Linux":
|
46
|
+
# Safe on Linux
|
47
|
+
__logger__.info("Setting socket settings for Linux")
|
48
|
+
return base_options + [
|
40
49
|
(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1),
|
41
|
-
(socket.IPPROTO_TCP,
|
50
|
+
(socket.IPPROTO_TCP, socket.TCP_KEEPIDLE, 60),
|
51
|
+
(socket.IPPROTO_TCP, socket.TCP_KEEPINTVL, 60),
|
52
|
+
(socket.IPPROTO_TCP, socket.TCP_KEEPCNT, 3)
|
42
53
|
]
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
# windows
|
47
|
-
return HTTPConnection.default_socket_options + [
|
54
|
+
else:
|
55
|
+
__logger__.warning("Unsupported platform for TCP keep-alive fine-tuning. Using basic SO_KEEPALIVE.")
|
56
|
+
return base_options + [
|
48
57
|
(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1)
|
49
58
|
]
|
50
|
-
except AttributeError:
|
51
|
-
__logger__.exception("Unable to set TCP Keep-alive socket options")
|
52
|
-
raise
|
@@ -77,7 +77,7 @@ lusid/api/translation_api.py,sha256=xpRuTfwQvYBlWe6r_L2EI_uVpXqHFnEOim-i-kVQ85E,
|
|
77
77
|
lusid/api/workspace_api.py,sha256=0pCNi3ZCRbIo0NXKa85XE7vtq0WV5YOKcQKvFlcLUaY,120708
|
78
78
|
lusid/api_client.py,sha256=ewMTmf9SRurY8pYnUx9jy24RdldPCOa4US38pnrVxjA,31140
|
79
79
|
lusid/api_response.py,sha256=6-gnhty6lu8MMAERt3_kTVD7UxQgWFfcjgpcq6iN5IU,855
|
80
|
-
lusid/configuration.py,sha256=
|
80
|
+
lusid/configuration.py,sha256=7IAO4j__PgFN-pnfdzpHwhx4mmMUb1i_5O065TM9JjM,17972
|
81
81
|
lusid/exceptions.py,sha256=HIQwgmQrszLlcVCLaqex8dO0laVuejUyOMz7U2ZWJ6s,5326
|
82
82
|
lusid/extensions/__init__.py,sha256=dzDHEzpn-9smd2-_UMWQzeyX6Ha4jGf6fnqx7qxKxNI,630
|
83
83
|
lusid/extensions/api_client.py,sha256=GzygWg_h603QK1QS2HvAijuE2R1TnvoF6-Yg0CeM3ug,30943
|
@@ -90,7 +90,7 @@ lusid/extensions/proxy_config.py,sha256=UUHQhd8ub-mKVIVbzDbmNQYLLemPX1b209ZcDrCF
|
|
90
90
|
lusid/extensions/refreshing_token.py,sha256=i5z2-LS8WG_VKWuFX1IM_f4waAr-fAQOzusFv2Vc7NA,11032
|
91
91
|
lusid/extensions/rest.py,sha256=dp-bD_LMR2zAL1tmC3-urhWKLomXx7r5iGN1VteMBVQ,16012
|
92
92
|
lusid/extensions/retry.py,sha256=EhW9OKJmGHipxN3H7eROH5DiMlAnfBVl95NQrttcsdg,14834
|
93
|
-
lusid/extensions/socket_keep_alive.py,sha256=
|
93
|
+
lusid/extensions/socket_keep_alive.py,sha256=eX5ICvGfVzUCGIm80Q2RknfFZrBQAdnrcpY61M29V_k,1997
|
94
94
|
lusid/extensions/tcp_keep_alive_connector.py,sha256=zaGtUsygRsxB1_4B3x39K3ILwztdhMLDv5bFZV7zmGE,3877
|
95
95
|
lusid/models/__init__.py,sha256=IrF70EJdizVcJ6nb8YKkkd2qVDTLUm6oOIjT19ttb1U,131035
|
96
96
|
lusid/models/a2_b_breakdown.py,sha256=-FXgILrvtZXQDmvS0ARaJVGBq5LJ4AH-o3HjujFVmS4,3198
|
@@ -1320,6 +1320,6 @@ lusid/models/year_month_day.py,sha256=gwSoxFwlD_wffKdddo1wfvAcLq3Cht3FHQidiaHzAA
|
|
1320
1320
|
lusid/models/yield_curve_data.py,sha256=I1ZSWxHMgUxj9OQt6i9a4S91KB4_XtmrfFxpN_PV3YQ,9561
|
1321
1321
|
lusid/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
1322
1322
|
lusid/rest.py,sha256=HQT__5LQEMu6_1sLKvYj-DI4FH1DJXBIPYfZCTTyrY4,13431
|
1323
|
-
lusid_sdk-2.1.
|
1324
|
-
lusid_sdk-2.1.
|
1325
|
-
lusid_sdk-2.1.
|
1323
|
+
lusid_sdk-2.1.808.dist-info/METADATA,sha256=hR2vxqZglXrNtFYpmnOm2P_XHlcVSZkFXJdkAfP4BfE,221153
|
1324
|
+
lusid_sdk-2.1.808.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
1325
|
+
lusid_sdk-2.1.808.dist-info/RECORD,,
|
File without changes
|