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?

api

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

Popular posts from this blog

angular - Is it possible to get native element for formControl? -

unity3d - Rotate an object to face an opposite direction -

javascript - Why jQuery Select box change event is now working? -