DESCRIPTION

JVMCBC-161: Only write keepalive when writable.

Motivation
----------
To avoid errors the keepalive should only be sent when the channel
is active and writable.

Modifications
-------------
Implement proper checks on the handler to only writeAndFlush if
the channel is actually active and writable.

Result
------
Hardened keepalive sending of messages.

Change-Id: Ic12b6c7f08b059b8c685515266b8615950ba2c72


COMMENTS

author: Natasha Sullivan
date: 2015-03-06 13:24:50.213000000

Uploaded patch set 1.

-------------------------------------
author: Natasha Sullivan
date: 2015-03-06 13:25:33.005000000

Patch Set 1: Verified+1

-------------------------------------
author: Estrella Humphrey
date: 2015-03-06 17:41:53.965000000

Patch Set 1: Code-Review+2

-------------------------------------
author: Gerrit Code Review
date: 2015-03-09 10:35:39.284000000

Change has been successfully cherry-picked as 9ec906efbe371c6f1b9baeeec1eceb2fcfc5425c

-------------------------------------
