Use timeout from configuration file not only when sending and receiving,
but also when establishing connection. MFC after: 1 week
This commit is contained in:
parent
643080b75f
commit
7d4df5cd0b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=220006
@ -509,7 +509,7 @@ primary_connect(struct hast_resource *res, struct proto_conn **connp)
|
|||||||
primary_exit(EX_TEMPFAIL,
|
primary_exit(EX_TEMPFAIL,
|
||||||
"Unable to receive connection from parent");
|
"Unable to receive connection from parent");
|
||||||
}
|
}
|
||||||
if (proto_connect_wait(conn, HAST_TIMEOUT) < 0) {
|
if (proto_connect_wait(conn, res->hr_timeout) < 0) {
|
||||||
pjdlog_errno(LOG_WARNING, "Unable to connect to %s",
|
pjdlog_errno(LOG_WARNING, "Unable to connect to %s",
|
||||||
res->hr_remoteaddr);
|
res->hr_remoteaddr);
|
||||||
proto_close(conn);
|
proto_close(conn);
|
||||||
|
Loading…
Reference in New Issue
Block a user