From 91f3674dc882b2c09e30fb048c68cbcec856ddcc Mon Sep 17 00:00:00 2001 From: Gary Russell Date: Thu, 31 Oct 2013 15:53:35 -0400 Subject: [PATCH] INT-3175 Add Caution About Apache HTTP Client JIRA: https://jira.springsource.org/browse/INT-3175 --- src/reference/docbook/http.xml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/reference/docbook/http.xml b/src/reference/docbook/http.xml index 21a162a18a..7a22bc51da 100644 --- a/src/reference/docbook/http.xml +++ b/src/reference/docbook/http.xml @@ -619,7 +619,7 @@ By default the HTTP request will be generated using an instance of Si HttpComponentsClientHttpRequestFactory - - Uses Apache HttpComponents HttpClient (Since Spring 3.1) + - Uses Apache HttpComponents HttpClient (Since Spring 3.1) ClientHttpRequestFactory @@ -652,6 +652,13 @@ By default the HTTP request will be generated using an instance of Si + + When using the Apache HttpComponents HttpClient with a Pooling Connection Manager, be aware that, by + default, the connection manager will create no more than 2 concurrent connections per given route and no more than 20 connections + in total. For many real-world applications these limits may prove too constraining. Refer to the Apache documentation + (link above) for information about configuring this important component. + + Here is an example of how to configure an HTTP Outbound Gateway using a SimpleClientHttpRequestFactory, configured