Skip to content
GitLab
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
92e60927
Commit
92e60927
authored
Aug 22, 2016
by
Steven Murray
Browse files
Added more information to 'Failed to connect message'
parent
c0e46b29
Changes
1
Hide whitespace changes
Inline
Side-by-side
tapeserver/castor/io/io.cpp
View file @
92e60927
...
...
@@ -950,8 +950,9 @@ int castor::io::connectWithTimeout(
// Throw an exception if no file descriptor was set
if
(
!
(
pollFd
.
revents
&
POLLIN
)
&&
!
(
pollFd
.
revents
&
POLLOUT
))
{
castor
::
exception
::
Exception
ex
(
ECANCELED
);
ex
.
getMessage
()
<<
"Failed to connect"
": poll() returned without an event"
;
ex
.
getMessage
()
<<
"Failed to connect: poll() returned without an event"
": pollFd.fd="
<<
pollFd
.
fd
<<
",pollFd.events="
<<
pollFd
.
events
<<
",pollFd.revents="
<<
pollFd
.
revents
;
throw
ex
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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