TCP Client through multithreading in C#
问题 I am connecting to Gmail account using TCP client for reading emails. It returns SslStream for the TCP connection. It works fine for single thread environment but performance is very poor in terms of speed. I need to optimize the project so that its speed can be increased. I have implemented multithreading which increases the speeed but application gets hang at some point. Is it thread safe to use TCP connection (global member)? OR Can I create multiple TCP connections and pass to the thread