Skip to content

Commit bd930cc

Browse files
committed
cleanup: Make TCP connection failures a warning instead of error.
It's not really bad, unless all connections fail. This is currently erroring on FreeBSD tests, making them fail needlessly.
1 parent fad6e4e commit bd930cc

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
c93d2d972558f578c6893aa12c1dafadf8b3dbb959b68c22efbfe7ad00d20f88 /usr/local/bin/tox-bootstrapd
1+
7e935410e534383805cf9579f0f1855a31a034a9d04d498524ef5eb4bbabd496 /usr/local/bin/tox-bootstrapd

toxcore/ccompat.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
*/
44
#include "ccompat.h"
55

6-
static_assert(sizeof(int) >= 4, "toxcore does not support 16-bit platform");
6+
static_assert(sizeof(int) >= 4, "toxcore does not support 16-bit platforms");

toxcore/network.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1753,8 +1753,8 @@ bool net_connect(const Memory *mem, const Logger *log, Socket sock, const IP_Por
17531753
// Non-blocking socket: "Operation in progress" means it's connecting.
17541754
if (!should_ignore_connect_error(error)) {
17551755
char *net_strerror = net_new_strerror(error);
1756-
LOGGER_ERROR(log, "failed to connect to %s:%d: %d (%s)",
1757-
net_ip_ntoa(&ip_port->ip, &ip_str), net_ntohs(ip_port->port), error, net_strerror);
1756+
LOGGER_WARNING(log, "failed to connect to %s:%d: %d (%s)",
1757+
net_ip_ntoa(&ip_port->ip, &ip_str), net_ntohs(ip_port->port), error, net_strerror);
17581758
net_kill_strerror(net_strerror);
17591759
return false;
17601760
}

0 commit comments

Comments
 (0)