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
Reviewed-on: http://review.couchbase.org/47856
Tested-by: Natasha Sullivan xxx@xxx.xxx
Reviewed-by: Estrella Humphrey xxx@xxx.xxx


COMMENTS

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

Change has been successfully cherry-picked as 9ec906efbe371c6f1b9baeeec1eceb2fcfc5425c

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