Skip to content

feat(bindings): expose request timeout to Python and C - #288

Merged
vuanhphung merged 1 commit into
mainfrom
vu-phung/request-timeout-bindings
Aug 25, 2026
Merged

vuanhphung merged 1 commit into
mainfrom
vu-phung/request-timeout-bindings

Conversation

@vuanhphung

Copy link
Copy Markdown
Collaborator

Expose the kernel HTTP request timeout through PyO3 and the C ABI. Python accepts fractional seconds, while the C ABI accepts milliseconds; zero preserves the kernel default.

Adds validation and focused PyO3, C ABI, and C smoke-test coverage.

Tested with full Rust and PyO3 test suites, Clippy, formatting checks, and make c-abi-test.


This PR was created with GitHub MCP.

@oss-reviewer-bot oss-reviewer-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No issues identified by the review bot.

@oss-reviewer-bot oss-reviewer-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: 1 Medium

Looks solid overall — the C ABI setter, merge_http_config/build_http_config threading, and test coverage (positive/zero/negative/NaN, C smoke test) are consistent and the 120s default claim matches src/config.rs:824. One medium concern: the Some(0.0) float-literal match pattern in build_http_config risks tripping the illegal_floating_point_literal_pattern lint under -D warnings.

Comment thread pyo3/src/session.rs Resolved

@oss-reviewer-bot oss-reviewer-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No issues identified by the review bot.

@vuanhphung
vuanhphung force-pushed the vu-phung/request-timeout-bindings branch from 28d902a to 9e56397 Compare August 24, 2026 21:57
@vuanhphung
vuanhphung force-pushed the vu-phung/request-timeout-bindings branch from 9e56397 to 8419f0d Compare August 24, 2026 22:00

@oss-reviewer-bot oss-reviewer-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No issues identified by the review bot.

Signed-off-by: Vu Anh Phung <vu.phung@databricks.com>

@oss-reviewer-bot oss-reviewer-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No issues identified by the review bot.

This branch was previously deployed

1 inactive deployment
azure-prod — b4848474 Deployed Aug 25, 2026 by vuanhphung via followup #1016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants