mirror of
https://github.com/google/cdc-file-transfer.git
synced 2026-10-29 00:40:30 +03:00
[cdc_rsync] Use ephemeral port on client (#96)
Instead of calling netstat locally to find out available ports in a tight range, call bind() with port zero to find an available ephemeral port. This is faster and much simpler, and will eventually help getting rid of PortManager. Also fixes issues with running SSH commands on Windows when the remote shell is Powershell (aka Backslash Bingo).
This commit is contained in:
1 parent
09cee120b2
commit
26ff93489e
10 files changed
+39
-134
No files matched your search
+1
-1
@@ -71,9 +71,9 @@ cc_library(
|
||||
"//common:path",
|
||||
"//common:path_filter",
|
||||
"//common:platform",
|
||||
"//common:port_manager",
|
||||
"//common:process",
|
||||
"//common:remote_util",
|
||||
"//common:server_socket",
|
||||
"//common:socket",
|
||||
"//common:status",
|
||||
"//common:status_macros",
|
||||
|
||||
Reference in new issue
Block a user