added support for tcp_timeout