foens/hpop

Infinite timeout receiveTimeout and sendTimeout not working

Opened this issue · 0 comments

When trying to connect using receiveTimeout and sendTimeout using no timeout there is no way to get it working.

TcpClient is used so the infinite timeout is System.Threading.Timeout.Infinite = -1
and OpenPop3.NET is throwing an exception when < 0

if (receiveTimeout < 0)
throw new ArgumentOutOfRangeException("receiveTimeout");
if (sendTimeout < 0)
throw new ArgumentOutOfRangeException("sendTimeout");