Skip to content

fix: increase scheme-safe response header timeout - #21469

Merged
wangq8 merged 1 commit into
infiniflow:mainfrom
buua436:go118
Oct 26, 2026
Merged

wangq8 merged 1 commit into
infiniflow:mainfrom
buua436:go118

Conversation

@buua436

@buua436 buua436 commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

What problem does this PR solve?

Raises the scheme-safe HTTP client’s response-header timeout from 60 seconds to 20 minutes, so long-running model requests can wait for the provider’s response.

Type of change

  • Bug Fix (non-breaking change which fixes an issue)

@buua436
buua436 requested a review from wangq8 October 26, 2026 05:49
@buua436 buua436 added the ci Continue Integration label Oct 26, 2026
@coderabbitai

coderabbitai Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 7a03e45b-1037-443d-8ea3-8bc8b7d8b34d
Commits

Reviewing files that changed from the base of the PR and between 2fc2b88 and 3937c58.

Files selected for processing: 1
  • internal/common/http.go

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

Walkthrough

GetSchemeSafeHTTPClient now waits up to 20 minutes for response headers instead of 60 seconds.

Changes: HTTP response-header timeout

Layer / File(s) Summary
Update response-header timeout
internal/common/http.go
GetSchemeSafeHTTPClient increases ResponseHeaderTimeout from 60 seconds to 20 minutes.

Priority: Normal

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Bug fix

Possibly related issues

Possibly related PRs

Suggested labels: go

Suggested reviewers: jinhai-cn

Merge Risk: Minimal · up to 3937c

The timeout change matches the stated objective and is mergeable with normal checks.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 1 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Title check Passed The title clearly and concisely describes the main change: increasing the scheme-safe response-header timeout.
Description check Passed The description explains the problem, the timeout change, the reason for the change, and the change type. It does not use the template's exact "### Summary" heading, but it provides the required summa…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Description check

Explanation

The description explains the problem, the timeout change, the reason for the change, and the change type. It does not use the template's exact "### Summary" heading, but it provides the required summary information.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

A rabbit checks the headers slow,
While twenty minutes let them flow.
No sixty-second rush today,
The patient client will wait its way.
Then hops along beneath the moon.

Comment @coderabbitai help to get the list of available commands.

@wangq8
wangq8 merged commit e8185a5 into infiniflow:main Oct 26, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Continue Integration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants