mirror of
https://github.com/nestriness/cdc-file-transfer.git
synced 2026-05-02 05:23:07 +03:00
[cdc_stream] Append errors from netstart to status (#9)
So far, errors from the remote netstat process would only be logged in the asset stream service, for instance when SSH auth failed. However, the errors were not shown to the client, and that's the most important thing. Also adds some feedback to cdc_stream in case of success.
This commit is contained in:
@@ -445,7 +445,7 @@ absl::Status MultiSession::Initialize() {
|
||||
ports,
|
||||
PortManager::FindAvailableLocalPorts(kAssetStreamPortFirst,
|
||||
kAssetStreamPortLast, "127.0.0.1",
|
||||
process_factory_, true),
|
||||
process_factory_),
|
||||
"Failed to find an available local port in the range [%d, %d]",
|
||||
kAssetStreamPortFirst, kAssetStreamPortLast);
|
||||
assert(!ports.empty());
|
||||
|
||||
@@ -76,7 +76,7 @@ absl::Status Session::Start(int local_port, int first_remote_port,
|
||||
ports,
|
||||
PortManager::FindAvailableRemotePorts(
|
||||
first_remote_port, last_remote_port, "127.0.0.1", process_factory_,
|
||||
&remote_util_, kInstanceConnectionTimeoutSec, true),
|
||||
&remote_util_, kInstanceConnectionTimeoutSec),
|
||||
"Failed to find an available remote port in the range [%d, %d]",
|
||||
first_remote_port, last_remote_port);
|
||||
assert(!ports.empty());
|
||||
|
||||
Reference in New Issue
Block a user