g3
g3 copied to clipboard
Enterprise-oriented Generic Proxy Solutions
When downloading large files (e.g., a 1TB file), it would be helpful to receive periodic log entries at defined intervals (e.g., every n seconds) that report on the progress of...
I would like to request a feature that allows setting a limit on the maximum number of bytes per request. For example, if the limit is set to 100MB, users...
Is there some way to log/debug parameters for TLS connections from g3proxy to an upstream server? Most important would be the server certificate (chain). You can get the leaf certificate...
Dear. I have a bit of an odd issue with the icap client of g3. There are edge cases where the icap client sends a RESPMOD (for a response WITH...
Hi, is there already support for upgrading the http version of incoming traffic into an http proxy server? If so, how can that be done, documentation doesn't seem to mention...
The IO code below: syslog: https://github.com/bytedance/g3/blob/6d0cbcf512179841a3eb04b818d2c31da94cdaa2/lib/g3-syslog/src/async_streamer.rs#L159 statsd: https://github.com/bytedance/g3/blob/6d0cbcf512179841a3eb04b818d2c31da94cdaa2/lib/g3-statsd-client/src/sink/mod.rs#L126 should be updated to do batch IO send, we have done this for udpdump https://github.com/bytedance/g3/blob/6d0cbcf512179841a3eb04b818d2c31da94cdaa2/lib/g3-udpdump/src/stream/sink.rs#L57
### 任务描述 当前 `lib/g3-yaml/src/value/net/tcp.rs` 文件中包含了多个用于解析 YAML 配置为 TCP 相关配置对象的函数,如 `as_tcp_listen_config`、`as_tcp_connect_config` 等。为了确保这些函数的正确性和健壮性,需要为这些函数添加单元测试。 ### 具体要求 1. 为 `tcp.rs` 文件中的每个 `as_*_config` 函数编写至少一个单元测试,验证函数在正常输入下的行为。 2. 为 `set_tcp_listen_scale` 函数编写单元测试,验证其在不同输入类型(如字符串、整数、实数)下的行为。 3. 对于每个单元测试,需要考虑以下情况: - 正常输入:验证函数是否能够正确解析输入的 YAML 数据并返回预期的配置对象。 -...
#### 问题描述 当前项目中 `lib/g3-dpi/src/protocol/stomp.rs` 文件实现了 STOMP 协议的检查逻辑,但缺少对应的单元测试。需要在`lib/g3-dpi/tests` 目录下添加单元测试,以确保STOMP协议识别的正确性。 #### 任务要求 1. 在g3-dpi的 `tests` 目录下创建一个新的测试文件`stomp.rs`。 2. 为 `ProtocolInspectState` 中的以下方法编写单元测试: - `check_stomp_client_connect_request` 3. 测试用例应覆盖以下场景: - 正常情况下,输入符合 STOMP 协议的请求数据,方法应返回正确的 `Protocol::Stomp`。 - 输入不符合 STOMP...
Correct me if I'm wrong, but currently it does not seem to be possible to bind a tcp listener (server), e.g. as used by a sni or http proxy, to...