release: v0.9.1-beta14

This commit is contained in:
2026-04-26 14:58:20 +02:00
parent 23756b82a9
commit fc681316fc
7 changed files with 208 additions and 131 deletions

View File

@@ -198,6 +198,7 @@ class KobraXClient:
def _read_loop(self):
last_ping = time.time()
_empty_count = 0
while self._running:
if time.time() - last_ping > 30:
with self._lock:
@@ -212,7 +213,12 @@ class KobraXClient:
try:
data = self._sock.recv(65536)
if not data:
raise ConnectionResetError("EOF")
# Windows SSL kann kurzzeitig b"" liefern ohne echten EOF
_empty_count += 1
if _empty_count >= 5:
raise ConnectionResetError("EOF")
continue
_empty_count = 0
self._buf += data
self._drain()
except ssl.SSLWantReadError: