java - PoolingNHttpClientConnectionManager: what is timeToLive attribute for? -
i trying understand how timetolive attribute work?
is when connection out of pool, time interval after connection deliberately closed , returned pool?
i want client using persistent connections close every few seconds, requests load-balancer going new server every few seconds.
ttl parameter limits total time live of persistent connection finite value. regardless of keep-alive value returned server or client side keep-alive strategy connection never re-used beyond ttl.
one of purpose of ttl parameter ensure more equal redistribution of persistent connection across cluster of nodes.
Comments
Post a Comment