[Box Backup-commit] COMMIT r1708 - box/chris/merge/lib/server
boxbackup-dev at fluffy.co.uk
boxbackup-dev at fluffy.co.uk
Thu Jun 28 21:54:28 BST 2007
Author: chris
Date: 2007-06-28 21:54:28 +0100 (Thu, 28 Jun 2007)
New Revision: 1708
Modified:
box/chris/merge/lib/server/SocketStream.cpp
Log:
Log reasons for failure to connect to a socket.
Modified: box/chris/merge/lib/server/SocketStream.cpp
===================================================================
--- box/chris/merge/lib/server/SocketStream.cpp 2007-06-28 19:54:45 UTC (rev 1707)
+++ box/chris/merge/lib/server/SocketStream.cpp 2007-06-28 20:54:28 UTC (rev 1708)
@@ -15,6 +15,7 @@
#include <sys/types.h>
#include <errno.h>
+#include <string.h>
#ifndef WIN32
#include <poll.h>
@@ -164,6 +165,10 @@
#else
::close(mSocketHandle);
#endif
+ BOX_ERROR("Failed to connect to socket (type " << Type <<
+ ", name " << Name << ", port " << Port << "): " <<
+ "error " << errno << " (" << strerror(errno) <<
+ ")");
mSocketHandle = INVALID_SOCKET_VALUE;
THROW_EXCEPTION(ConnectionException, Conn_SocketConnectError)
}
More information about the Boxbackup-commit
mailing list