Skip to content
Snippets Groups Projects
Commit 2fead822 authored by Steven Murray's avatar Steven Murray
Browse files

Forgot to add the value of the bad socket file-descriptor to the

net::acceptConnection exception messages.
parent 729ddd51
Branches
Tags
No related merge requests found
......@@ -151,7 +151,9 @@ int castor::tape::net::acceptConnection(const int listenSocketFd)
if(connectedSocketFd < 0) {
std::stringstream reason;
reason << ": Accept failed";
reason <<
": Accept failed"
": listenSocketFd=" << listenSocketFd;
if(savedErrno == EINVAL) {
reason << ": Socket is not listening for connections";
......@@ -235,7 +237,9 @@ int castor::tape::net::acceptConnection(const int listenSocketFd,
if(connectedSocketFd < 0) {
std::stringstream reason;
reason << ": Accept failed";
reason <<
": Accept failed"
": listenSocketFd=" << listenSocketFd;
if(acceptErrno == EINVAL) {
reason << ": Socket is not listening for connections";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment