set tcp keepalive timeout from config

also changed default for pipelining to 1 (on)