Skip to content

Conversation

@guanxuc
Copy link
Contributor

@guanxuc guanxuc commented Jan 7, 2026

AgentScope-Java Version

1.0.7-SNAPSHOT

Description

Set connection pool for jdk http client

Checklist

Please check the following items before code is ready to be reviewed.

  • Code has been formatted with mvn spotless:apply
  • All tests are passing (mvn test)
  • Javadoc comments are complete and follow project conventions
  • Related documentation has been updated (e.g. links, examples, etc.)
  • Code is ready for review

@guanxuc guanxuc requested a review from a team January 7, 2026 13:27
@codecov
Copy link

codecov bot commented Jan 7, 2026

Codecov Report

❌ Patch coverage is 75.00000% with 2 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...entscope/core/model/transport/OkHttpTransport.java 0.00% 2 Missing ⚠️

📢 Thoughts on this report? Let us know!

@guanxuc guanxuc force-pushed the jdk-httpclient-connection-pool branch from e0b332a to afe0f55 Compare January 8, 2026 15:03
Comment on lines +109 to +111
System.setProperty(
"jdk.httpclient.connectionPoolSize",
String.valueOf(config.getMaxIdleConnections()));
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm a bit concerned that this might affect other parts of the user's application that use the JDK HTTP Client.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You're right, maybe it will be better that the properties be configured by user.

@guanxuc guanxuc closed this Jan 9, 2026
@guanxuc guanxuc deleted the jdk-httpclient-connection-pool branch January 9, 2026 08:10
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.

2 participants