Skip to content

Commit

Permalink
sweep: DIRACGrid#7848 fix (DISET): Resolve infinite loop in DISET for…
Browse files Browse the repository at this point in the history
… `DISET.BaseTransport` sendData
  • Loading branch information
fstagni committed Nov 6, 2024
1 parent a461a40 commit dabf4ea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/DIRAC/Core/DISET/private/Transports/BaseTransport.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,8 @@ def sendData(self, uData, prefix=b""):
sentBytes = result["Value"]
except Exception as e:
return S_ERROR(f"Exception while sending data: {e}")
if sentBytes < 0:
return S_ERROR("Unknown unrecoverable error from socket while sending data")
if sentBytes == 0:
return S_ERROR("Connection closed by peer")
packSentBytes += sentBytes
Expand Down

0 comments on commit dabf4ea

Please sign in to comment.