Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb85c8af

Browse files
knizhnikkelvich
authored andcommitted
Correctly handle connect errors
1 parent34f64ad commitb85c8af

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

‎arbiter.c‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -473,8 +473,12 @@ static int MtmConnectSocket(int node, int port)
473473
MTM_ELOG(WARNING,"Arbiter trying to connect to %s:%d: %s",host,port,strerror(errcode));
474474
gotoError;
475475
}
476-
}else {
477-
MTM_ELOG(WARNING,"Arbiter waiting socket to %s:%d: %s",host,port,strerror(errno));
476+
}elseif (rc==0) {
477+
MTM_ELOG(WARNING,"Arbiter failed to connect to socket to %s:%d within specified timeout",host,port);
478+
gotoError;
479+
}else {
480+
MTM_ELOG(WARNING,"Arbiter failed to wait socket to %s:%d: %s",host,port,strerror(errno));
481+
gotoError;
478482
}
479483
}
480484
elseif (rc!=0) {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp