Bug 6442: Keepalive not send by BGP ODL 36/44536/1
authorMilos Fabian <milfabia@cisco.com>
Tue, 23 Aug 2016 09:33:02 +0000 (11:33 +0200)
committerMilos Fabian <milfabia@cisco.com>
Tue, 23 Aug 2016 09:33:02 +0000 (11:33 +0200)
commitefba83b67ddbb7fe2fe054907a1fe0fb8f96ed0a
treee6640adb89bba3c1ac7df4d36df1040cc24da273
parentf8fc78a27fbad9134ced8ccc2bbca961f2aeff89
Bug 6442: Keepalive not send by BGP ODL

When ODL BGP is reading a bigger amount of data using
native epoll transport, scheduled KA hndler task is getting executed.
As a result, remote peer's holdtimer expires -> connection is dropped.

Switch the Epoll mode to "level-triggered", as we want to use MAX_MESSAGES_PER_READ
channel option (round-robin processing).

Ref.: https://netty.io/4.0/api/io/netty/channel/epoll/EpollChannelConfig.html#setEpollMode(io.netty.channel.epoll.EpollMode)

Change-Id: If4a6ac3e3fc9d006cd6ba54c1606731add8bfa2c
Signed-off-by: Milos Fabian <milfabia@cisco.com>
bgp/rib-impl/src/main/java/org/opendaylight/protocol/bgp/rib/impl/BGPDispatcherImpl.java