Skip to content
This repository has been archived by the owner on Jul 21, 2024. It is now read-only.

BN-87 Try to solve the issue with put the same file on server #88

Merged
merged 1 commit into from
Sep 21, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion BlendNet/Client.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,9 @@ def _requestExecute(self, req, run_func):
print('WARN: Seems like wrong (or old) CA is loaded, reinit SSL context and repeat.')
self._initSSL()
else:
if isinstance(e.reason, BrokenPipeError) and req.data:
if req.data and (isinstance(e.reason, BrokenPipeError) # Linux
or isinstance(e.reason, ConnectionAbortedError) # Windows
or isinstance(e.reason, ConnectionResetError)): # Windows
# Ignore error "Broken pipe" for PUT requests - server checks sha1
return True
print('WARN: Communication issue with request to "%s": %s' % (req.full_url, e.reason))
Expand Down