Merge pull request #4452 from yyforyongyu/add-connection-timeout
lnrpc+tor: add network connection timeout
This commit is contained in:
22 files changed
+994
-724
No files matched your search
+649
-637
File diff suppressed because it is too large.
Load diff
@@ -969,6 +969,12 @@ message ConnectPeerRequest {
|
||||
/* If set, the daemon will attempt to persistently connect to the target
|
||||
* peer. Otherwise, the call will be synchronous. */
|
||||
bool perm = 2;
|
||||
|
||||
/*
|
||||
The connection timeout value (in seconds) for this request. It won't affect
|
||||
other requests.
|
||||
*/
|
||||
uint64 timeout = 3;
|
||||
}
|
||||
message ConnectPeerResponse {
|
||||
}
|
||||
|
||||
@@ -3223,6 +3223,11 @@
|
||||
"type": "boolean",
|
||||
"format": "boolean",
|
||||
"description": "If set, the daemon will attempt to persistently connect to the target\npeer. Otherwise, the call will be synchronous."
|
||||
},
|
||||
"timeout": {
|
||||
"type": "string",
|
||||
"format": "uint64",
|
||||
"description": "The connection timeout value (in seconds) for this request. It won't affect\nother requests."
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user