Details
Description
The connection pool introfuced in 3.21.0 cause some problems.
- If consumer side not reachable on client start the route cannot be started. Ok, this problem was also before 3.21.0, but was easier to fix.
- The usage of connection pool in the AS2ClientConnection.send doesn't handle excetions properly. If something goes wrong when connection is opened or when request/respone executed, the connection isn't returned properly to the pool. So, after some exceptions there are no available connections in the pool anymore and another exception occurs - just org.apache.http.conn.ConnectionPoolTimeoutException: Timeout waiting for connection from pool