Print connection failure after stats.

This commit is contained in:
Ian Gulliver
2016-03-06 18:59:05 -08:00
parent b3996631b1
commit 092f1e708d

View File

@@ -334,7 +334,7 @@ static void conn_check(struct conn *conn) {
socklen_t len = sizeof(error);
assert(getsockopt(conn->fd, SOL_SOCKET, SO_ERROR, &error, &len) == 0);
if (error) {
fprintf(stderr, "Connection failed: %s\n", strerror(error));
fprintf(stderr, "\nConnection failed: %s\n", strerror(error));
shutdown_flag = true;
return;
}