Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Infinite timeout receiveTimeout and sendTimeout not working #69

Open
Powlinz opened this issue Mar 12, 2018 · 0 comments
Open

Infinite timeout receiveTimeout and sendTimeout not working #69

Powlinz opened this issue Mar 12, 2018 · 0 comments

Comments

@Powlinz
Copy link

Powlinz commented Mar 12, 2018

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");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant