Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dCache
cta
Commits
3385361a
Commit
3385361a
authored
Aug 24, 2016
by
Eric Cano
Browse files
Added missing support for some return values of recv().
parent
b7505bd2
Changes
1
Hide whitespace changes
Inline
Side-by-side
tapeserver/castor/io/io.cpp
View file @
3385361a
...
...
@@ -693,6 +693,10 @@ void castor::io::readBytes(
// We did read more data...
readPtr
+=
recvRet
;
bytesRemaining
-=
recvRet
;
}
else
if
(
0
==
recvRet
)
{
throw
cta
::
exception
::
Exception
(
"In io::readBytes: recv(): connection closed."
);
}
else
if
(
-
1
==
recvRet
)
{
throw
cta
::
exception
::
Errnum
(
"In io::readBytes: error calling recv():"
);
}
else
{
std
::
stringstream
err
;
err
<<
"In io::readBytes: unexpected return value from recv: "
<<
recvRet
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment