code optimizations to reduce cpu usage of agent on all platforms and additional unit test.

This commit is contained in:
2025-08-28 16:03:05 -07:00
parent 7592709a43
commit df2308e6e9
4 changed files with 214 additions and 29 deletions
Generated
+36 -4
View File
@@ -158,7 +158,7 @@ dependencies = [
"sha1",
"sync_wrapper",
"tokio",
"tokio-tungstenite",
"tokio-tungstenite 0.24.0",
"tower 0.5.2",
"tower-layer",
"tower-service",
@@ -2181,13 +2181,13 @@ dependencies = [
"sysinfo",
"tempfile",
"tokio",
"tokio-tungstenite",
"tokio-tungstenite 0.24.0",
"url",
]
[[package]]
name = "socktop_agent"
version = "1.40.66"
version = "1.40.67"
dependencies = [
"anyhow",
"assert_cmd",
@@ -2210,6 +2210,7 @@ dependencies = [
"tempfile",
"time",
"tokio",
"tokio-tungstenite 0.21.0",
"tonic-build",
"tracing",
"tracing-subscriber",
@@ -2463,6 +2464,18 @@ dependencies = [
"tokio",
]
[[package]]
name = "tokio-tungstenite"
version = "0.21.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c83b561d025642014097b66e6c1bb422783339e0909e4429cde4749d1990bc38"
dependencies = [
"futures-util",
"log",
"tokio",
"tungstenite 0.21.0",
]
[[package]]
name = "tokio-tungstenite"
version = "0.24.0"
@@ -2475,7 +2488,7 @@ dependencies = [
"rustls-pki-types",
"tokio",
"tokio-rustls 0.26.2",
"tungstenite",
"tungstenite 0.24.0",
]
[[package]]
@@ -2608,6 +2621,25 @@ dependencies = [
"tracing-log",
]
[[package]]
name = "tungstenite"
version = "0.21.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9ef1a641ea34f399a848dea702823bbecfb4c486f911735368f1f137cb8257e1"
dependencies = [
"byteorder",
"bytes",
"data-encoding",
"http",
"httparse",
"log",
"rand",
"sha1",
"thiserror 1.0.69",
"url",
"utf-8",
]
[[package]]
name = "tungstenite"
version = "0.24.0"