foens / hpop

OpenPOP.NET code repository
http://hpop.sourceforge.net/
202 stars 114 forks source link

Pop3Client.Connect(stream) hangs forever. #75

Open dstampher opened 5 years ago

dstampher commented 5 years ago

Since this library does not support proxy servers, I am using the starksoft-aspen library to create a proxied NetworkStream to be passed into Pop3Client.Connect.

In the example code below, the Connect() method hangs forever with no exception to tell me what is wrong.

var client = new Pop3Client()
var proxyClient = new HttpProxyClient("127.0.0.1", 8888);
client.Connect(proxyClient.CreateConnection(hostname, port).GetStream());
client.Authenticate(username, password);
jstedfast commented 5 years ago

I added proxy support a few months ago to MailKit. If anyone else is having this problem, feel free to try MailKit instead. If you encounter any problems, let me know and I'll pump out a fix.