mirror of
https://github.com/google/cdc-file-transfer.git
synced 2026-09-13 01:10:44 +03:00
[PortManager] Prefer ss over netstat on Linux (#91)
ss is a modern alternative to netstat. The flags we use and the way we parse the output are compatible with netstat. Since netstat is no longer installed on some Linux distributions, prefer ss, but fall back to netstat if "which ss" fails. Also tweaks some logging. Fixes #65
This commit is contained in:
@@ -146,10 +146,10 @@ void ZstdStream::ThreadCompressorMain() {
|
||||
const ZSTD_EndDirective mode = last_chunk_ ? ZSTD_e_end
|
||||
: flush ? ZSTD_e_flush
|
||||
: ZSTD_e_continue;
|
||||
LOG_DEBUG("Compressing %u bytes (mode=%s)", in_buffer_.size(),
|
||||
mode == ZSTD_e_end ? "end"
|
||||
: mode == ZSTD_e_flush ? "flush"
|
||||
: "continue");
|
||||
LOG_VERBOSE("Compressing %u bytes (mode=%s)", in_buffer_.size(),
|
||||
mode == ZSTD_e_end ? "end"
|
||||
: mode == ZSTD_e_flush ? "flush"
|
||||
: "continue");
|
||||
ZSTD_inBuffer input = {in_buffer_.data(), in_buffer_.size(), 0};
|
||||
bool finished = false;
|
||||
do {
|
||||
|
||||
Reference in New Issue
Block a user