GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(apache5): set connection request timeout on setTimeout by diegomarquezp · Pull Request #2129 · googleapis/google-http-java-client

Conversation

@diegomarquezp

@diegomarquezp diegomarquezp commented Dec 1, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

This PR addresses an issue where setConnectionRequestTimeout was not being honored by Apache5HttpTransport.
The root cause was that Apache5HttpRequest created a new RequestConfig for each request, overwriting the default configuration set on the HttpClient.
Changes:

  • Include setConnectionRequestTimeout as a setting affected by setTimeout(int, int) so that it uses the connectTimeout argument.
  • Add unit test to confirm behavior.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@product-auto-label product-auto-label Bot added the size: xl Pull request size is extra large. label Dec 1, 2025
@diegomarquezp diegomarquezp changed the title Apache5 connection request config feat: Add constructor with connection request config for Apache 5 http client Dec 1, 2025
@diegomarquezp
feat: Add constructor with connection request config for Apache 5 htt…
9de5064
…p client
@diegomarquezp
diegomarquezp force-pushed the apache5-connection-request-config branch from a53bce4 to 9de5064 Compare December 1, 2025 17:24
@diegomarquezp
chore: dos2unix
c4c3007
@product-auto-label product-auto-label Bot added size: m Pull request size is medium. and removed size: xl Pull request size is extra large. labels Dec 1, 2025
diegomarquezp added 2 commits December 1, 2025 12:26
@diegomarquezp
chore: remove redundant test
a69dc92
@diegomarquezp
chore: lint
c352278
blakeli0
blakeli0 reviewed Dec 1, 2025
View reviewed changes
Comment thread ...lient-apache-v5/src/main/java/com/google/api/client/http/apache/v5/Apache5HttpTransport.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

blakeli0
blakeli0 reviewed Dec 1, 2025
View reviewed changes
Comment thread ...t-apache-v5/src/test/java/com/google/api/client/http/apache/v5/Apache5HttpTransportTest.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

diegomarquezp added 2 commits December 1, 2025 16:25
@diegomarquezp
chore: revert changes
4add320
@diegomarquezp
fix: set connection request timeout on setTimeout
d6d770a
@product-auto-label product-auto-label Bot added size: l Pull request size is large. and removed size: m Pull request size is medium. labels Dec 1, 2025
@diegomarquezp diegomarquezp changed the title feat: Add constructor with connection request config for Apache 5 http client fix(apache5): set connection request timeout on setTimeout Dec 1, 2025
@diegomarquezp
chore: convert line endings
52a3b0f
@product-auto-label product-auto-label Bot added size: s Pull request size is small. and removed size: l Pull request size is large. labels Dec 1, 2025
diegomarquezp added 2 commits December 1, 2025 17:08
@diegomarquezp
chore: back to original approach
0b3d0bc
@diegomarquezp
chore: transform to unit test
c6b495d
@product-auto-label product-auto-label Bot added size: m Pull request size is medium. and removed size: s Pull request size is small. labels Dec 1, 2025
@diegomarquezp
diegomarquezp marked this pull request as ready for review December 1, 2025 22:21
@diegomarquezp
diegomarquezp requested a review from blakeli0 December 2, 2025 00:32
diegomarquezp added 2 commits December 17, 2025 22:34
@diegomarquezp
Revert "chore: transform to unit test"
1210a75
This reverts commit c6b495d.
@diegomarquezp
Revert "chore: back to original approach"
415af6c
This reverts commit 0b3d0bc.
@product-auto-label product-auto-label Bot added size: s Pull request size is small. and removed size: m Pull request size is medium. labels Dec 17, 2025
blakeli0
blakeli0 reviewed Dec 18, 2025
View reviewed changes
Comment thread ...-client-apache-v5/src/main/java/com/google/api/client/http/apache/v5/Apache5HttpRequest.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

@diegomarquezp
docs: add javadoc for Apache5HttpRequest.setTimeout(int, int)
905e064
blakeli0
blakeli0 approved these changes Dec 19, 2025
View reviewed changes
@diegomarquezp
diegomarquezp merged commit d11d794 into main Dec 19, 2025
@diegomarquezp
diegomarquezp deleted the apache5-connection-request-config branch December 19, 2025 20:57
@release-please release-please Bot mentioned this pull request Dec 19, 2025
chore(main): release 2.0.3 #2140
Merged
@diegomarquezp diegomarquezp added the release-please:force-run To run release-please label Dec 19, 2025
@release-please release-please Bot removed the release-please:force-run To run release-please label Dec 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@blakeli0 blakeli0 blakeli0 approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

size: s Pull request size is small.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@diegomarquezp @blakeli0
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.