atomicshop 2.18.17__py3-none-any.whl → 2.18.18__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.
Potentially problematic release.
This version of atomicshop might be problematic. Click here for more details.
- atomicshop/__init__.py +1 -1
- atomicshop/wrappers/socketw/receiver.py +2 -11
- {atomicshop-2.18.17.dist-info → atomicshop-2.18.18.dist-info}/METADATA +1 -1
- {atomicshop-2.18.17.dist-info → atomicshop-2.18.18.dist-info}/RECORD +7 -7
- {atomicshop-2.18.17.dist-info → atomicshop-2.18.18.dist-info}/LICENSE.txt +0 -0
- {atomicshop-2.18.17.dist-info → atomicshop-2.18.18.dist-info}/WHEEL +0 -0
- {atomicshop-2.18.17.dist-info → atomicshop-2.18.18.dist-info}/top_level.txt +0 -0
atomicshop/__init__.py
CHANGED
|
@@ -23,7 +23,7 @@ def peek_first_bytes(client_socket, bytes_amount: int = 1) -> bytes:
|
|
|
23
23
|
return client_socket.recv(bytes_amount, socket.MSG_PEEK)
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
def is_socket_ready_for_read(socket_instance, timeout:
|
|
26
|
+
def is_socket_ready_for_read(socket_instance, timeout: float = 0) -> bool:
|
|
27
27
|
"""
|
|
28
28
|
Check if socket is ready for read.
|
|
29
29
|
|
|
@@ -122,18 +122,9 @@ class Receiver:
|
|
|
122
122
|
# We'll skip the 'is_socket_ready_for_read' check on the first run, since we want to read the data anyway,
|
|
123
123
|
# to leave the socket in the blocking mode.
|
|
124
124
|
first_run: bool = True
|
|
125
|
-
no_data_first_cycle: bool = True
|
|
126
125
|
while True:
|
|
127
126
|
# Check if there is data to be read from the socket.
|
|
128
|
-
is_there_data: bool = is_socket_ready_for_read(self.ssl_socket, timeout=0)
|
|
129
|
-
|
|
130
|
-
# If there is no data to be read from the socket, and it is the first cycle, wait for a bit and try again.
|
|
131
|
-
if no_data_first_cycle and not is_there_data:
|
|
132
|
-
no_data_first_cycle = False
|
|
133
|
-
sleep_time: float = 0.5
|
|
134
|
-
self.logger.info(f"First time socket not ready. Waiting {str(sleep_time)} seconds before trying last time.")
|
|
135
|
-
time.sleep(sleep_time)
|
|
136
|
-
continue
|
|
127
|
+
is_there_data: bool = is_socket_ready_for_read(self.ssl_socket, timeout=0.5)
|
|
137
128
|
|
|
138
129
|
# noinspection PyTypeChecker
|
|
139
130
|
if is_there_data or first_run:
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
atomicshop/__init__.py,sha256=
|
|
1
|
+
atomicshop/__init__.py,sha256=eQr9Fof-xo4eR9O81aZCwDxsSgyunNqvIrJeVUh7VjA,124
|
|
2
2
|
atomicshop/_basics_temp.py,sha256=6cu2dd6r2dLrd1BRNcVDKTHlsHs_26Gpw8QS6v32lQ0,3699
|
|
3
3
|
atomicshop/_create_pdf_demo.py,sha256=Yi-PGZuMg0RKvQmLqVeLIZYadqEZwUm-4A9JxBl_vYA,3713
|
|
4
4
|
atomicshop/_patch_import.py,sha256=ENp55sKVJ0e6-4lBvZnpz9PQCt3Otbur7F6aXDlyje4,6334
|
|
@@ -309,7 +309,7 @@ atomicshop/wrappers/socketw/creator.py,sha256=aSwfN_IwXXf4Hob35vHXUxD_OPeshZcRDZ
|
|
|
309
309
|
atomicshop/wrappers/socketw/dns_server.py,sha256=RklzINNuoMQn4PGGQEI5hiAldprbVwwvikY6u9X-jTY,49067
|
|
310
310
|
atomicshop/wrappers/socketw/exception_wrapper.py,sha256=B-X5SHLSUIWToihH2MKnOB1F4A81_X0DpLLfnYKYbEc,7067
|
|
311
311
|
atomicshop/wrappers/socketw/get_process.py,sha256=aJC-_qFUv3NgWCSUzDI72E4z8_-VTZE9NVZ0CwUoNlM,5698
|
|
312
|
-
atomicshop/wrappers/socketw/receiver.py,sha256=
|
|
312
|
+
atomicshop/wrappers/socketw/receiver.py,sha256=O1h7nhJIRD4KDQxSe6JvYwA-vmKeeP3ONmxF8x6C97M,8207
|
|
313
313
|
atomicshop/wrappers/socketw/sender.py,sha256=aX_K8l_rHjd5AWb8bi5mt8-YTkMYVRDB6DnPqK_XDUE,4754
|
|
314
314
|
atomicshop/wrappers/socketw/sni.py,sha256=T9PXROiTYYxrd_7X4Hoj9hoNPXXTQpa2HdvmBJJIoeA,17607
|
|
315
315
|
atomicshop/wrappers/socketw/socket_client.py,sha256=oa3GwS4OPgokrJE5_Oc4-5_wlXHxSH9J5f2DKebms8k,22035
|
|
@@ -320,8 +320,8 @@ atomicshop/wrappers/socketw/statistics_csv.py,sha256=fgMzDXI0cybwUEqAxprRmY3lqbh
|
|
|
320
320
|
atomicshop/wrappers/winregw/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
321
321
|
atomicshop/wrappers/winregw/winreg_installed_software.py,sha256=Qzmyktvob1qp6Tjk2DjLfAqr_yXV0sgWzdMW_9kwNjY,2345
|
|
322
322
|
atomicshop/wrappers/winregw/winreg_network.py,sha256=AENV88H1qDidrcpyM9OwEZxX5svfi-Jb4N6FkS1xtqA,8851
|
|
323
|
-
atomicshop-2.18.
|
|
324
|
-
atomicshop-2.18.
|
|
325
|
-
atomicshop-2.18.
|
|
326
|
-
atomicshop-2.18.
|
|
327
|
-
atomicshop-2.18.
|
|
323
|
+
atomicshop-2.18.18.dist-info/LICENSE.txt,sha256=lLU7EYycfYcK2NR_1gfnhnRC8b8ccOTElACYplgZN88,1094
|
|
324
|
+
atomicshop-2.18.18.dist-info/METADATA,sha256=8vRMxwI466-ZxRsHeJJLik4TemN7DUHdwI1gf2JmBd0,10577
|
|
325
|
+
atomicshop-2.18.18.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
326
|
+
atomicshop-2.18.18.dist-info/top_level.txt,sha256=EgKJB-7xcrAPeqTRF2laD_Np2gNGYkJkd4OyXqpJphA,11
|
|
327
|
+
atomicshop-2.18.18.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|