Is there a way to set the connection lifetime (time to be active regardless of the usage) in WSO2 nhttp transport?
Asked
Active
Viewed 79 times
2 Answers
1
as Bhathiya says, nhttp.properties is the way to configure the nhttp timeout "globally".
You can also use a specific timeout in one of your endpoints definition
If you want a timeout value over 120 seconds, don't forget to set "synapse.global_timeout_interval" in synapse.properties

Jean-Michel
- 5,926
- 1
- 13
- 19
-
Socket timeout will be refreshed for each data packet it received. But What I wanted here to have a hard stop for a connection to be used after a defined time. Please refer to http://stackoverflow.com/questions/2748706/connection-timeout-and-connection-lifetime – Eranda Oct 14 '16 at 14:00
0
You can configure socket timeouts in repository/conf/nhttp.properties
file, if that's what you're looking for.
# Client > ESB Connection timeout
http.socket.timeout.receiver=180000
# ESB > BackEnd Connection timeout
http.socket.timeout.sender=180000

Bee
- 12,251
- 11
- 46
- 73
-
@Bathiya, Socket timeout will be refreshed for each data packet it received. But What I wanted here to have a hard stop for a connection to be used after a defined time. Please refer to http://stackoverflow.com/questions/2748706/connection-timeout-and-connection-lifetime – Eranda Oct 14 '16 at 13:58