Commit Graph
9 Commits
Author SHA1 Message Date
what 0f4a4ded53 feat: 添加 WithDefaultTimeout 默认超时配置
Invoke 之前完全依赖调用方传入的 ctx 控制超时,池子被占满或 Python 侧
handler 阻塞时,未设置 deadline 的调用会永久阻塞且不报错。新增
WithDefaultTimeout 选项,仅在 ctx 未设置 deadline 时兜底生效,调用方
显式设置的超时优先级更高。

同时补充 example 中的阻塞/超时演示(demoTimeout、demoBlocking)和
pool_test.go 集成测试,覆盖池占满排队、默认超时、显式 deadline 优先级、
流式输出超时后 channel 静默关闭等场景。
2026-07-23 10:37:24 +08:00
what 57775a33ec feat: 添加 []byte ↔ bytes 支持(base64 透明编解码)
- Python 侧:_decode_bytes_args 根据函数注解自动解码入参,_bytes_encode 自动编码 bytes 返回值
- _cast 支持 bytes 类型(call_go[bytes] 返回值解码)
- 流式输出同步支持 chan []byte(每个 chunk 独立编解码)
- example/worker.py 新增 bytes_reverse / bytes_concat / bytes_chunks 示例
- example/main.go 新增对应演示用例
- README 补充类型表 []byte 行及完整使用章节
2026-05-19 20:07:31 +08:00
what e6a61cc1ee refactor: 将 WithSticky 重命名为 StickyCtx,避免与 pool Option 的 With* 前缀冲突 2026-05-08 15:21:59 +08:00
what a3cf983b39 refactor: 将 WithAffinity 重命名为 WithSticky,文件 affinity.go → sticky.go 2026-05-08 11:37:34 +08:00
what 3d293699e9 docs: 添加 Session 亲和路由章节(NewSession / WithAffinity) 2026-05-08 11:29:39 +08:00
what 30004e44ee docs: 添加 handler 中使用 threading.Thread 的注意事项 2026-04-14 16:49:12 +08:00
what 07e9239ac5 refactor: 将装饰器 gobridge 重命名为 expose,并添加 pyproject.toml 2026-04-13 17:13:54 +08:00
what cca4860df0 docs: 更新 uv pyproject.toml 示例,改为从 git 仓库安装 Python 包 2026-04-10 09:28:05 +08:00
what a92abca252 first commit 2026-04-10 09:24:28 +08:00