set more options on tcp connections. handle socket timeouts