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

Timeout connect enhacement timeout #60

Open
fujiyamatlenpl opened this issue Mar 27, 2012 · 2 comments
Open

Timeout connect enhacement timeout #60

fujiyamatlenpl opened this issue Mar 27, 2012 · 2 comments

Comments

@fujiyamatlenpl
Copy link

Hi,
I've succesfully tested an enhancement in Connect method.
I had an issue with slow responding IMAP server during auth process so I added timeout parameters in connect method before invocation of AuthenticateAsClient method.
Please consider include some solution in a code. Best regards!

example:

sslStream.ReadTimeout = sslStream.WriteTimeout=connectionTimout;
sslStream.AuthenticateAsClient(hostname);

@0000day
Copy link

0000day commented Aug 17, 2017

This is still a problem. The existing timeout-properties aren't covering the connection itself. I've got the case that a provider blocked my IP because of too many failed tryouts. In this case the next connect-attempt takes something about 10-20 seconds.

This has to be able to set.

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

3 participants
@fujiyamatlenpl @0000day and others