sgx.py 0.9.dev3__tar.gz → 0.9.dev4__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: sgx.py
3
- Version: 0.9.dev3
3
+ Version: 0.9.dev4
4
4
  Summary: SGX
5
5
  Home-page: http://github.com/skalenetwork/sgx.py
6
6
  Author: SKALE Labs
@@ -22,7 +22,7 @@ extras_require['dev'] = (
22
22
 
23
23
  setup(
24
24
  name='sgx.py',
25
- version='0.9dev3',
25
+ version='0.9dev4',
26
26
  description='SGX',
27
27
  url='http://github.com/skalenetwork/sgx.py',
28
28
  author='SKALE Labs',
@@ -5,6 +5,7 @@ GENERATE_SCRIPT_PATH = os.path.join(CUR_DIR, 'generate.sh')
5
5
 
6
6
  DEFAULT_TIMEOUT = 10
7
7
  SGX_RESPONSE_TIMEOUT = 60 # seconds
8
+ SGX_ZMQ_RESPONSE_TIMEOUT_MS = 5000
8
9
 
9
10
  CSR_FILENAME = 'sgx.csr'
10
11
  KEY_FILENAME = 'sgx.key'
@@ -35,6 +35,7 @@ from urllib.parse import urlparse
35
35
 
36
36
  from sgx.constants import (
37
37
  DEFAULT_TIMEOUT,
38
+ SGX_ZMQ_RESPONSE_TIMEOUT_MS,
38
39
  CRT_FILENAME,
39
40
  KEY_FILENAME
40
41
  )
@@ -270,6 +271,8 @@ class SgxZmq:
270
271
  socket_p_id = self.ctx.socket(zmq.DEALER)
271
272
  socket_p_id.setsockopt_string(zmq.IDENTITY, "135:14603077656239261618")
272
273
  socket_p_id.setsockopt(zmq.LINGER, 0)
274
+ socket_p_id.setsockopt(zmq.SNDTIMEO, SGX_ZMQ_RESPONSE_TIMEOUT_MS)
275
+ socket_p_id.setsockopt(zmq.RCVTIMEO, SGX_ZMQ_RESPONSE_TIMEOUT_MS)
273
276
  socket_p_id.connect(self.sgx_endpoint)
274
277
  self.sockets[p_id] = socket_p_id
275
278
  socket = self.sockets[p_id]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: sgx.py
3
- Version: 0.9.dev3
3
+ Version: 0.9.dev4
4
4
  Summary: SGX
5
5
  Home-page: http://github.com/skalenetwork/sgx.py
6
6
  Author: SKALE Labs
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