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

Pop3Client does not close TCP connections #4

Closed
princeoffoods opened this issue Jan 24, 2014 · 7 comments
Closed

Pop3Client does not close TCP connections #4

princeoffoods opened this issue Jan 24, 2014 · 7 comments

Comments

@princeoffoods
Copy link
Contributor

Hello,

Running the Pop3Client sample code in a timer keeps a lot of connections with CLOSE_WAIT state and ESTABLISHED state open (verified with sysinternals TCPView).

Checking 5 Mailaccounts every 30 seconds quickly produces about 150 open connections (about 50% with CLOSE_WAIT state).

About 10 minutes later all the connections get closed and then they start building up again.

Environment: Win8, Pop3s

@jstedfast
Copy link
Owner

Hmmm... are you disposing the Pop3Client? That disposes the underlying stream.

@princeoffoods
Copy link
Contributor Author

Sure, it's really just the sample code from the start page in a loop.

I'm sending you an email with code to reproduce it including login data to a testing mail account.

@jstedfast
Copy link
Owner

fixed

@princeoffoods
Copy link
Contributor Author

I did some more testing today. Unfortunately this issue does not seem to be resolved yet.

tcpview-close_wait

@jstedfast
Copy link
Owner

this may be fixed by my latest commit - the Connect loop was connecting to every IP address in a loop, even if a connection was successful.

@princeoffoods
Copy link
Contributor Author

Thank you, the latest commit fixed it.

@jstedfast
Copy link
Owner

thank goodness!

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

2 participants