Skip to content

Commit

Permalink
fixup: more socketexc
Browse files Browse the repository at this point in the history
  • Loading branch information
CendioOssman committed Sep 10, 2024
1 parent 4b924af commit 4f9aed1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions common/rdr/FdInStream.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ size_t FdInStream::readFd(uint8_t* buf, size_t len)
} while (n < 0 && errorNumber == EINTR);

if (n < 0)
throw SystemException("select", errorNumber);
throw SocketException("select", errorNumber);

if (n == 0)
return 0;
Expand All @@ -102,7 +102,7 @@ size_t FdInStream::readFd(uint8_t* buf, size_t len)
} while (n < 0 && errorNumber == EINTR);

if (n < 0)
throw SystemException("read", errorNumber);
throw SocketException("read", errorNumber);
if (n == 0)
throw EndOfStream();

Expand Down
4 changes: 2 additions & 2 deletions common/rdr/FdOutStream.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ size_t FdOutStream::writeFd(const uint8_t* data, size_t length)
} while (n < 0 && errorNumber == EINTR);

if (n < 0)
throw SystemException("select", errorNumber);
throw SocketException("select", errorNumber);

if (n == 0)
return 0;
Expand All @@ -134,7 +134,7 @@ size_t FdOutStream::writeFd(const uint8_t* data, size_t length)
} while (n < 0 && (errorNumber == EINTR));

if (n < 0)
throw SystemException("write", errorNumber);
throw SocketException("write", errorNumber);

gettimeofday(&lastWrite, nullptr);

Expand Down

0 comments on commit 4f9aed1

Please sign in to comment.