Refactored TcpStreamSettings to use nullable TimeSpans for optional timeouts.