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

allowUsingHttp2 #42947

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

allowUsingHttp2 #42947

wants to merge 7 commits into from

Conversation

xinlian12
Copy link
Member

No description provided.

@xinlian12
Copy link
Member Author

/azp run java - cosmos - tests

Copy link

Azure Pipelines failed to run 1 pipeline(s).

@xinlian12
Copy link
Member Author

/azp run java - cosmos - tests

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@azure-sdk
Copy link
Collaborator

API change check

API changes are not detected in this pull request.

@xinlian12
Copy link
Member Author

/azp run java - cosmos - tests

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@xinlian12
Copy link
Member Author

/azp run java - cosmos - tests

@xinlian12 xinlian12 marked this pull request as ready for review November 15, 2024 20:26
@xinlian12 xinlian12 changed the title allowUsingHttp2 - TEST - NO REVIEW allowUsingHttp2 Nov 15, 2024
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

// Check for leading whitespace or other prohibited characters
if (StringUtils.isNotEmpty(value) && (value.charAt(0) == ' ' || value.charAt(value.length() - 1) == ' ')) {
// Clean up the header value by trimming or handling as needed
logger.warn("There are extra white space for key {} with value {}", key, value);
Copy link
Member

Choose a reason for hiding this comment

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

Given taht this happens for each request now - maybe make this DEBUG level tracing for now?

Copy link
Member Author

Choose a reason for hiding this comment

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

make sense - will change in next iteration

Copy link
Member Author

Choose a reason for hiding this comment

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

changed to trace level

@@ -59,6 +59,8 @@ static HttpClient createFixed(HttpClientConfig httpClientConfig) {
fixedConnectionProviderBuilder.pendingAcquireTimeout(connectionAcquireTimeout);
fixedConnectionProviderBuilder.maxIdleTime(maxIdleConnectionTimeoutInMillis);

// TODO[Http2]: config Http2AllocationStrategy (maxConnections & maxConcurrentStreams)
Copy link
Member

Choose a reason for hiding this comment

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

I assume left out intentionally instead of using 30 for maxConcurrentStreams?

Copy link
Member Author

Choose a reason for hiding this comment

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

yea want to wire it up when adding the public API change

Copy link
Member

@FabianMeiswinkel FabianMeiswinkel left a comment

Choose a reason for hiding this comment

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

LGTM - Thanks!

@xinlian12
Copy link
Member Author

/azp run java - cosmos - tests

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@xinlian12
Copy link
Member Author

/azp run java - cosmos - tests

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants