fix-1309 http connection enhancements #1427
Open
+510
−7
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.
closes #1309
Added a new global configuration section in geowebcache.xml:
Configuration Classes
HttpConnectionSettings: Configuration class for global HTTP connection settings
HttpClientConnectionManagerFactory: Factory class to manage connection managers with proper configuration
Schema Updates
Added httpConnectionSettings element to the XML schema
Updated documentation for the deprecated concurrency parameter
Added proper validation and documentation
Code Changes
HttpClientBuilder: Updated to use the connection manager factory instead of static singleton
XMLConfiguration: Added initialization of HTTP connection manager during startup
WMSLayer: Added deprecation warnings for the concurrency parameter
GeoWebCacheConfiguration: Added support for HTTP connection settings
Benefits
Proper Configuration: Connection settings are now properly applied and effective
Per-Route Control: Can configure maxConnectionsPerRoute for better performance
Global Settings: Single configuration point for all WMS layers
Backward Compatibility: Existing configurations continue to work with deprecation warnings
Performance: Better control over connection pooling for high-performance environments
Usage
For Side-by-Side GeoServer Installations
When GeoWebCache is installed side-by-side with GeoServer on localhost, increase the per-route connections:
Default Values
maxConnectionsTotal: 20
maxConnectionsPerRoute: 2
connectionTimeout: 30 seconds
socketTimeout: 60 seconds
Migration
Remove per-layer concurrency parameters from WMS layer configurations
Add global HTTP connection settings to geowebcache.xml
Monitor logs for deprecation warnings during migration