mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-01 17:55:20 +00:00
socket errno 11: raise timeout instead of looping
This commit is contained in:
parent
de92f1c98f
commit
ab1714e9f2
1 changed files with 3 additions and 3 deletions
|
@ -415,9 +415,9 @@ class SocketPipe:
|
||||||
if err.errno == 60:
|
if err.errno == 60:
|
||||||
raise timeout
|
raise timeout
|
||||||
elif err.errno in [11, 35, 10035]:
|
elif err.errno in [11, 35, 10035]:
|
||||||
print_error("socket errno", err.errno)
|
print_error("socket errno %d (resource temporarily unavailable)"% err.errno)
|
||||||
time.sleep(0.1)
|
time.sleep(0.2)
|
||||||
continue
|
raise timeout
|
||||||
else:
|
else:
|
||||||
print_error("pipe: socket error", err)
|
print_error("pipe: socket error", err)
|
||||||
data = ''
|
data = ''
|
||||||
|
|
Loading…
Add table
Reference in a new issue