Added support for tcp keep alive enabling and disabling

And make the timeout work out properly.

Signed-off-by: Toon Schoenmakers <nighteyes1993@gmail.com>