Skip to content

Commit

Permalink
Merge pull request #7864 from DIRACGridBot/cherry-pick-2-418c605cd-in…
Browse files Browse the repository at this point in the history
…tegration

[sweep:integration] fix (DISET): Resolve infinite loop in DISET for `DISET.BaseTransport` sendData
  • Loading branch information
fstagni authored Nov 6, 2024
2 parents b749ccb + dabf4ea commit 4f5b2ef
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 4f5b2ef

Please sign in to comment.