Genesys CTI User Forum

Genesys CTI User Forum => Genesys-related Development => Topic started by: bence.meszaros on August 28, 2018, 10:48:45 AM

Title: PSDK connection keep alive
Post by: bence.meszaros on August 28, 2018, 10:48:45 AM
Hi There,

I am using WarmStandby connection with reconnection to Outbound, Stat and T servers without any problem in our test environment however in production I keep getting "java.io.IOException: An existing connection was forcibly closed by the remote host" both on server and client side. It turned out that TCP Resets (RST) are sent by the F5 load balancer which resets "idle" network connections after 5 minutes.

Automatic re-connection and a ChannelListener with onChannelOpened did the trick of re-registering the events but it seems to be clumsy and error prone to me. I was told that resetting idle connections is a common practice by routers, load balancers and firewalls, and disabling it is currently not an option...
Have you ever seen this? What is the best practice here? A built-in keep alive trigger would do but I could not find anything like this on ClientChannel. Any idea to sort this out would be appreciated.
Thanks
Title: Re: PSDK connection keep alive
Post by: hsujdik on August 28, 2018, 10:56:07 AM
The use of addp is for preventing that happen (among other issues it prevents). Lookup for addp in the docs
Title: Re: PSDK connection keep alive
Post by: bence.meszaros on August 28, 2018, 11:29:42 AM
Whoa, that was fast. Indeed, this ADDP guy is what I need, many thanks.
Title: Re: PSDK connection keep alive
Post by: hsujdik on August 28, 2018, 12:04:42 PM
Nice! Set it up before you open the Protocols