Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BT-5174-http-timeout] Allow user-configurable HTTP timeout for query and stream requests. #153

Merged
merged 7 commits into from
Oct 21, 2024

Conversation

findgriffin
Copy link
Contributor

Description

I added support for setting the HttpClient timeout (HttpClient connect timeout, and Fauna query are already configurable).

Motivation and context

I noticed this when testing logging support on Monday. It seems minor, but could also be frustrating for customers if we don't support it.

How was the change tested?

Unit and E2E tests.

Screenshots (if appropriate):

Change types

    • Bug fix (non-breaking change that fixes an issue)
    • New feature (non-breaking change that adds functionality)
    • Breaking change (backwards-incompatible fix or feature)

Checklist:

    • My code follows the code style of this project.
    • My change requires a change to Fauna documentation.
    • My change requires a change to the README, and I have updated it accordingly.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@findgriffin findgriffin requested a review from pnwpedro October 10, 2024 00:20
src/main/java/com/fauna/stream/StreamRequest.java Outdated Show resolved Hide resolved
@findgriffin findgriffin requested review from pnwpedro, cynicaljoy and a team and removed request for cynicaljoy October 11, 2024 16:25
@findgriffin findgriffin requested a review from jdcryans October 16, 2024 17:04
Copy link

@jdcryans jdcryans left a comment

Choose a reason for hiding this comment

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

Could also add to the README

@@ -63,6 +66,14 @@ public int getMaxContentionRetries() {
return maxContentionRetries;
}

/**
*

Choose a reason for hiding this comment

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

Forgot a commit?

src/main/java/com/fauna/client/RequestBuilder.java Outdated Show resolved Hide resolved
@findgriffin findgriffin requested a review from jdcryans October 21, 2024 21:33
@findgriffin findgriffin dismissed pnwpedro’s stale review October 21, 2024 21:50

Superseeded by JDs review

@findgriffin findgriffin merged commit 8ea52b0 into main Oct 21, 2024
1 check passed
@findgriffin findgriffin deleted the BT-5174-http-timeout branch October 21, 2024 21:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants