aenetmail icon indicating copy to clipboard operation
aenetmail copied to clipboard

Got transport connection error.

Open hiteshspacestem opened this issue 9 years ago • 3 comments

I got below error when going to connect server.

Unable to read data from the transport connection: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

Can you give me help how to resolved this error.?

hiteshspacestem avatar Oct 15 '14 11:10 hiteshspacestem

We encounter actually the very same error in production while reading some mails on a remote server.

moonpyk avatar Mar 17 '15 09:03 moonpyk

I compiled our project against latest master, here is a typical stack trace (in french, sorry). It happens on some specific mails, the remote pop server is SmarterMail 11.7.

L'exception System.IO.IOException n'a pas été gérée
  HResult=-2146232800
  Message=Impossible de lire les données de la connexion de transport : Une tentative de connexion a échoué car le parti connecté n’a pas répondu convenablement au-delà d’une certaine durée ou une connexion établie a échoué car l’hôte de connexion n’a pas répondu.
  Source=System
  StackTrace:
       à System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
       à System.IO.Stream.ReadByte()
       à AE.Net.Mail.Utilities.ReadLine(Stream stream, Int32& maxLength, Encoding encoding, Nullable`1 termChar, Int32 ReadTimeout) dans [REDACTED]\aenetmail\Utilities.cs:ligne 83
       à AE.Net.Mail.TextClient.GetResponse(Int32 timeout) dans [REDACTED]\aenetmail\TextClient.cs:ligne 117
       à AE.Net.Mail.TextClient.GetResponse() dans [REDACTED]\aenetmail\TextClient.cs:ligne 112
       à AE.Net.Mail.Pop3Client.GetMessage(String uid, Boolean headersOnly) dans [REDACTED]\aenetmail\Pop3Client.cs:ligne 52
       à AE.Net.Mail.Pop3Client.GetMessage(Int32 index, Boolean headersOnly) dans [REDACTED]\aenetmail\Pop3Client.cs:ligne 37
       [...REDACTED...]
  InnerException: System.Net.Sockets.SocketException
       HResult=-2147467259
       Message=Une tentative de connexion a échoué car le parti connecté n’a pas répondu convenablement au-delà d’une certaine durée ou une connexion établie a échoué car l’hôte de connexion n’a pas répondu
       Source=System
       ErrorCode=10060
       NativeErrorCode=10060
       StackTrace:
            à System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
            à System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
       InnerException: 

moonpyk avatar Mar 17 '15 10:03 moonpyk