I have noticed that messages were taking about five seconds each to send to a remote SMTP server (but on my local LAN). After stepping through the code, it appears that the TcpClient.Connect is the bottleneck. I have tried it on different client machines and different servers on different networks. All seem to demonstrate the delay.
Is there a configuration setting that I may need to adjust, or is this expected behavior of the TcpClient?
Thank you for your help!
Jim
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The TcpClient will connect as fast as possible. It may be a delay on your network. If you find a specific piece of code that is hindering the connection please let us know.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have noticed that messages were taking about five seconds each to send to a remote SMTP server (but on my local LAN). After stepping through the code, it appears that the TcpClient.Connect is the bottleneck. I have tried it on different client machines and different servers on different networks. All seem to demonstrate the delay.
Is there a configuration setting that I may need to adjust, or is this expected behavior of the TcpClient?
Thank you for your help!
Jim
The TcpClient will connect as fast as possible. It may be a delay on your network. If you find a specific piece of code that is hindering the connection please let us know.