Community Discussions and Support
socket read timeout when receiving mail on win7

> I am using Pegasus v4.63 (German Version) on Windows 7 Premium 64bit.
> When trying to download mails from my ISP's mailserver I regularly get
> timeout (8: Socket read timeout) errors. This isn't a permanent error.
> Sometimes I am able to download my mails.
> When the error occurs, the pmail log file shows the following:
> --- Thu, 08 Mar 2012 13:32:06 ---
> Connect to 'mail.someisp.com' port 110, timeout 90.

90 second TCP/IP timeout.

> 13:32:06.961 >> 0045 +OK POP3 Ready mail.someisp.com 0001c7a2\0D\0A
> 13:32:06.961 << 0026 USER username\0D\0A
> 13:32:06.007 >> 0040 +OK USER username set, mate\0D\0A
> 13:32:06.007 << 0016 PASS userpass\0D\0A
> 13:32:06.054 >> 0019 +OK You are so in\0D\0A
> 13:32:06.054 << 0006 STAT\0D\0A
> 13:32:06.101 >> 0014 +OK 4 363043\0D\0A
> 13:32:06.101 << 0006 LIST\0D\0A
> 13:32:06.132 >> 0024 +OK Scan list follows:\0D\0A
> 13:32:06.382 >> 0010 1 233132\0D\0A
> 13:32:06.382 >> 0009 2 54333\0D\0A
> 13:32:06.382 >> 0009 3 22051\0D\0A
> 13:32:06.382 >> 0009 4 53523\0D\0A
> 13:32:06.382 >> 0003 .\0D\0A
> 13:32:06.382 << 0008 RETR 1\0D\0A
> 13:32:06.429 >> 0021 +OK Message follows\0D\0A
> [multiple lines of header data and mail data/attachment data follow]

Thanks for trimming.  ;-)

> 13:32:07.616 >> 0078 KSIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0\0D\0A
> 13:32:07.616 >> 0078 Omluc3RhbmNlSUQ9InhtcC5paWQ6RUNCM0ExOEFGNzQxRTExMTgwMzZGMDA4MUNFNUMxOTgiIHN0\0D\0A
> 13:32:07.616 >> 0078 RXZ0OndoZW49IjIwMTItMDEtMThUMTg6MTM6NTkrMDE6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9\0D\0A
> 13:32:38.582 8: Socket read timeout.

There was a timeout after 30 seconds here but you have 90 seconds set in the POP3 timeout according to the session log.  I would try increasing it to something like 180 seconds anyway to see if this help, If this does not help you may have a packet fragmentation problem.


> 13:32:43.026 << 0006 QUIT\0D\0A
> 13:33:13.057 8: Socket read timeout.
> 13:33:13.057 --- Connection closed normally at Thu, 08 Mar 2012 13:33:13. ---\0A\0A
>
> As can be seen the timeout occurs suddenly during transmission of the
> mail data. The timeout occurs with selectively downloading a single
> mail as well as when downloading all emails.

> To solve this issue I have already tried the following but without any resolution:
> Disable IP and TCP checksum offloading
> Start pmail with the "-Z 1024" option to use blocking sockets
> I tried to debug with Wireshark and telnet
>
> With other mail clients (e.g. Thunderbird) downloading mails works fine.
>
> I couldn't reproduce the error on another pc with Windows 7 and pmail.
> Therefore an error at the ISP can be ruled out. What's so special on
> my installation of pmail?

Not sure but apparently is related to this system since it does not happen on the other system.  What is anything is running between Pegasus Mail and the host?  Anti-virus software?  Firewall? Other?



&amp;gt; I am using Pegasus v4.63 (German Version) on Windows 7 Premium 64bit. &amp;gt; When trying to download mails from my ISP&#039;s mailserver I regularly get &amp;gt; timeout (8: Socket read timeout) errors. This isn&#039;t a permanent error. &amp;gt; Sometimes I am able to download my mails. &amp;gt; When the error occurs, the pmail log file shows the following: &amp;gt; --- Thu, 08 Mar 2012 13:32:06 --- &amp;gt; Connect to &#039;mail.someisp.com&#039; port 110, timeout 90. 90 second TCP/IP timeout. &amp;gt; 13:32:06.961 &amp;gt;&amp;gt; 0045 +OK POP3 Ready mail.someisp.com 0001c7a2\0D\0A &amp;gt; 13:32:06.961 &amp;lt;&amp;lt; 0026 USER username\0D\0A &amp;gt; 13:32:06.007 &amp;gt;&amp;gt; 0040 +OK USER username set, mate\0D\0A &amp;gt; 13:32:06.007 &amp;lt;&amp;lt; 0016 PASS userpass\0D\0A &amp;gt; 13:32:06.054 &amp;gt;&amp;gt; 0019 +OK You are so in\0D\0A &amp;gt; 13:32:06.054 &amp;lt;&amp;lt; 0006 STAT\0D\0A &amp;gt; 13:32:06.101 &amp;gt;&amp;gt; 0014 +OK 4 363043\0D\0A &amp;gt; 13:32:06.101 &amp;lt;&amp;lt; 0006 LIST\0D\0A &amp;gt; 13:32:06.132 &amp;gt;&amp;gt; 0024 +OK Scan list follows:\0D\0A &amp;gt; 13:32:06.382 &amp;gt;&amp;gt; 0010 1 233132\0D\0A &amp;gt; 13:32:06.382 &amp;gt;&amp;gt; 0009 2 54333\0D\0A &amp;gt; 13:32:06.382 &amp;gt;&amp;gt; 0009 3 22051\0D\0A &amp;gt; 13:32:06.382 &amp;gt;&amp;gt; 0009 4 53523\0D\0A &amp;gt; 13:32:06.382 &amp;gt;&amp;gt; 0003 .\0D\0A &amp;gt; 13:32:06.382 &amp;lt;&amp;lt; 0008 RETR 1\0D\0A &amp;gt; 13:32:06.429 &amp;gt;&amp;gt; 0021 +OK Message follows\0D\0A &amp;gt; [multiple lines of header data and mail data/attachment data follow] Thanks for trimming.&amp;nbsp; ;-) &amp;gt; 13:32:07.616 &amp;gt;&amp;gt; 0078 KSIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0\0D\0A &amp;gt; 13:32:07.616 &amp;gt;&amp;gt; 0078 Omluc3RhbmNlSUQ9InhtcC5paWQ6RUNCM0ExOEFGNzQxRTExMTgwMzZGMDA4MUNFNUMxOTgiIHN0\0D\0A &amp;gt; 13:32:07.616 &amp;gt;&amp;gt; 0078 RXZ0OndoZW49IjIwMTItMDEtMThUMTg6MTM6NTkrMDE6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9\0D\0A &amp;gt; 13:32:38.582 8: Socket read timeout. There was a timeout after 30 seconds here but you have 90 seconds set in the POP3 timeout according to the session log.&amp;nbsp; I would try increasing it to something like 180 seconds anyway to see if this help, If this does not help you may have a packet fragmentation problem. &amp;gt; 13:32:43.026 &amp;lt;&amp;lt; 0006 QUIT\0D\0A &amp;gt; 13:33:13.057 8: Socket read timeout. &amp;gt; 13:33:13.057 --- Connection closed normally at Thu, 08 Mar 2012 13:33:13. ---\0A\0A &amp;gt; &amp;gt; As can be seen the timeout occurs suddenly during transmission of the &amp;gt; mail data. The timeout occurs with selectively downloading a single &amp;gt; mail as well as when downloading all emails. &amp;gt; To solve this issue I have already tried the following but without any resolution: &amp;gt; Disable IP and TCP checksum offloading &amp;gt; Start pmail with the &quot;-Z 1024&quot; option to use blocking sockets &amp;gt; I tried to debug with Wireshark and telnet &amp;gt; &amp;gt; With other mail clients (e.g. Thunderbird) downloading mails works fine. &amp;gt; &amp;gt; I couldn&#039;t reproduce the error on another pc with Windows 7 and pmail. &amp;gt; Therefore an error at the ISP can be ruled out. What&#039;s so special on &amp;gt; my installation of pmail? Not sure but apparently is related to this system since it does not happen on the other system.&amp;nbsp; What is anything is running between Pegasus Mail and the host?&amp;nbsp; Anti-virus software?&amp;nbsp; Firewall? Other?

Dear PMail Community,

I am using Pegasus v4.63 (German Version) on Windows 7 Premium 64bit. When trying to download mails from my ISP's mailserver I regularly get timeout (8: Socket read timeout) errors. This isn't a permanent error. Sometimes I am able to download my mails.

When the error occurs, the pmail log file shows the following:

--- Thu, 08 Mar 2012 13:32:06 ---
Connect to 'mail.someisp.com' port 110, timeout 90.
13:32:06.961 >> 0045 +OK POP3 Ready mail.someisp.com 0001c7a2\0D\0A
13:32:06.961 << 0026 USER username\0D\0A
13:32:06.007 >> 0040 +OK USER username set, mate\0D\0A
13:32:06.007 << 0016 PASS userpass\0D\0A
13:32:06.054 >> 0019 +OK You are so in\0D\0A
13:32:06.054 << 0006 STAT\0D\0A
13:32:06.101 >> 0014 +OK 4 363043\0D\0A
13:32:06.101 << 0006 LIST\0D\0A
13:32:06.132 >> 0024 +OK Scan list follows:\0D\0A
13:32:06.382 >> 0010 1 233132\0D\0A
13:32:06.382 >> 0009 2 54333\0D\0A
13:32:06.382 >> 0009 3 22051\0D\0A
13:32:06.382 >> 0009 4 53523\0D\0A
13:32:06.382 >> 0003 .\0D\0A
13:32:06.382 << 0008 RETR 1\0D\0A
13:32:06.429 >> 0021 +OK Message follows\0D\0A

[multiple lines of header data and mail data/attachment data follow]

13:32:07.616 >> 0078 KSIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0\0D\0A
13:32:07.616 >> 0078 Omluc3RhbmNlSUQ9InhtcC5paWQ6RUNCM0ExOEFGNzQxRTExMTgwMzZGMDA4MUNFNUMxOTgiIHN0\0D\0A
13:32:07.616 >> 0078 RXZ0OndoZW49IjIwMTItMDEtMThUMTg6MTM6NTkrMDE6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9\0D\0A
13:32:38.582 8: Socket read timeout.
13:32:43.026 << 0006 QUIT\0D\0A
13:33:13.057 8: Socket read timeout.
13:33:13.057 --- Connection closed normally at Thu, 08 Mar 2012 13:33:13. ---\0A\0A

As can be seen the timeout occurs suddenly during transmission of the mail data. The timeout occurs with selectively downloading a single mail as well as when downloading all emails.

To solve this issue I have already tried the following but without any resolution:

  • Disable IP and TCP checksum offloading
  • Start pmail with the "-Z 1024" option to use blocking sockets
  • I tried to debug with Wireshark and telnet
  • With other mail clients (e.g. Thunderbird) downloading mails works fine.
  • I couldn't reproduce the error on another pc with Windows 7 and pmail. Therefore an error at the ISP can be ruled out.

What's so special on my installation of pmail?

Thank you for your support!

Kind regards,

Mathias

&lt;p&gt;Dear PMail Community,&lt;/p&gt; &lt;p&gt;I am using Pegasus v4.63 (German Version) on Windows 7 Premium 64bit. When trying to download mails from my ISP&#039;s mailserver I regularly get timeout (8: Socket read timeout) errors. This isn&#039;t a permanent error.&amp;nbsp;Sometimes I am able to download my mails.&lt;/p&gt;&lt;p&gt; When the error occurs, the pmail log file shows the following: &lt;/p&gt; &lt;p&gt;--- Thu, 08 Mar 2012 13:32:06 --- Connect to &#039;mail.someisp.com&#039; port 110, timeout 90. 13:32:06.961 &amp;gt;&amp;gt; 0045 +OK POP3 Ready mail.someisp.com 0001c7a2\0D\0A 13:32:06.961 &amp;lt;&amp;lt; 0026 USER username\0D\0A 13:32:06.007 &amp;gt;&amp;gt; 0040 +OK USER username set, mate\0D\0A 13:32:06.007 &amp;lt;&amp;lt; 0016 PASS userpass\0D\0A 13:32:06.054 &amp;gt;&amp;gt; 0019 +OK You are so in\0D\0A 13:32:06.054 &amp;lt;&amp;lt; 0006 STAT\0D\0A 13:32:06.101 &amp;gt;&amp;gt; 0014 +OK 4 363043\0D\0A 13:32:06.101 &amp;lt;&amp;lt; 0006 LIST\0D\0A 13:32:06.132 &amp;gt;&amp;gt; 0024 +OK Scan list follows:\0D\0A 13:32:06.382 &amp;gt;&amp;gt; 0010 1 233132\0D\0A 13:32:06.382 &amp;gt;&amp;gt; 0009 2 54333\0D\0A 13:32:06.382 &amp;gt;&amp;gt; 0009 3 22051\0D\0A 13:32:06.382 &amp;gt;&amp;gt; 0009 4 53523\0D\0A 13:32:06.382 &amp;gt;&amp;gt; 0003 .\0D\0A 13:32:06.382 &amp;lt;&amp;lt; 0008 RETR 1\0D\0A 13:32:06.429 &amp;gt;&amp;gt; 0021 +OK Message follows\0D\0A [multiple lines of&amp;nbsp;header data and mail data/attachment data follow] 13:32:07.616 &amp;gt;&amp;gt; 0078 KSIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0\0D\0A 13:32:07.616 &amp;gt;&amp;gt; 0078 Omluc3RhbmNlSUQ9InhtcC5paWQ6RUNCM0ExOEFGNzQxRTExMTgwMzZGMDA4MUNFNUMxOTgiIHN0\0D\0A 13:32:07.616 &amp;gt;&amp;gt; 0078 RXZ0OndoZW49IjIwMTItMDEtMThUMTg6MTM6NTkrMDE6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9\0D\0A 13:32:38.582 8: Socket read timeout. 13:32:43.026 &amp;lt;&amp;lt; 0006 QUIT\0D\0A 13:33:13.057 8: Socket read timeout. 13:33:13.057 --- Connection closed normally at Thu, 08 Mar 2012 13:33:13. ---\0A\0A &lt;/p&gt; &lt;p&gt;As can be seen the timeout occurs suddenly during transmission of the mail data. The timeout occurs with selectively&amp;nbsp;downloading a single mail&amp;nbsp;as well as when&amp;nbsp;downloading all emails.&lt;/p&gt; &lt;p&gt;To solve this issue I have already tried the following but without any resolution:&lt;/p&gt; &lt;ul&gt;&lt;li&gt;Disable IP and TCP checksum offloading&lt;/li&gt;&lt;li&gt;Start pmail with the &quot;-Z 1024&quot; option to use blocking sockets&lt;/li&gt;&lt;li&gt;I tried to debug with Wireshark and telnet &lt;/li&gt;&lt;li&gt;With other mail clients (e.g. Thunderbird) downloading mails works fine.&lt;/li&gt;&lt;li&gt;I couldn&#039;t reproduce the error on another pc with Windows 7 and pmail. Therefore an error&amp;nbsp;at the&amp;nbsp;ISP can be ruled out.&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;What&#039;s so special on&amp;nbsp;my installation&amp;nbsp;of pmail?&lt;/p&gt;&lt;p&gt;Thank you for your support!&lt;/p&gt;&lt;p&gt;Kind regards,&lt;/p&gt;&lt;p&gt;Mathias&lt;/p&gt;

Try setting a higher TCP/IP timeout setting in your POP3 & SMTP host configurations.  Set at least to 180.  Some forum member report setting to 300.

A search of the forum for "socket read timeout" will provide numerous hits on the issue which might provide additional insight. 

&lt;p&gt;Try setting a higher TCP/IP timeout setting in your POP3 &amp;amp; SMTP host configurations. &amp;nbsp;Set at least to 180. &amp;nbsp;Some forum member report setting to 300.&lt;/p&gt;&lt;p&gt;A search of the forum for &quot;socket read timeout&quot; will provide numerous hits on the issue which might provide additional insight.&amp;nbsp;&lt;/p&gt;

Thank you for you answer.

I already tried with a higher timeout setting but without success.

It seems to be an issue on the network layer, maybe the way on how Pmail uses the sockets in windows 7. I do not run into these problems with other mail clients.

Other suggestions are still welcome.

&lt;p&gt;Thank you for you answer.&lt;/p&gt;&lt;p&gt;I already tried with a higher timeout setting but without success.&lt;/p&gt;&lt;p&gt;It seems to be an issue on the network layer, maybe the way on how Pmail uses the sockets in windows 7. I do not run into these problems with other mail clients.&lt;/p&gt;&lt;p&gt;Other suggestions are still welcome.&lt;/p&gt;

>  Connect to 'mail.someisp.com' port 110, timeout 90.

You have set a TCP/IP timeout of 90 in Pegasus Mail.

> 13:32:07.616 >> 0078 RXZ0OndoZW49IjIwMTItMDEtMThUMTg6MTM6NTkrMDE6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9\0D\0A
> 13:32:38.582 8: Socket read timeout.

and the TCP/IP system timed out in about 30 seconds. This says something else in the chain has a lower timeout setting than Pegasus Mail.  You really need to look at what is between Pegasus Mail and the server here.  Firewall?  Anti-virus software? other?

 

 

&lt;p&gt;&amp;gt;&amp;nbsp; Connect to &#039;mail.someisp.com&#039; port 110, timeout 90.&lt;/p&gt;&lt;p&gt;You have set a TCP/IP timeout of 90 in Pegasus Mail. &amp;gt; 13:32:&lt;b&gt;07&lt;/b&gt;.616 &amp;gt;&amp;gt; 0078 RXZ0OndoZW49IjIwMTItMDEtMThUMTg6MTM6NTkrMDE6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9\0D\0A &amp;gt; 13:32:&lt;b&gt;38&lt;/b&gt;.582 8: Socket read timeout.&lt;/p&gt;&lt;p&gt;and the TCP/IP system timed out in about 30 seconds. This says something else in the chain has a lower timeout setting than Pegasus Mail.&amp;nbsp; You really need to look at what is between Pegasus Mail and the server here.&amp;nbsp; Firewall?&amp;nbsp; Anti-virus software? other? &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;

You are right. This is weird. But I checked all the other log entries and there the timeout is correctly used, even with 300 seconds.

Anyway, I am going to try connecting to the mailserver with a more direct connection and send you an update asap.

&lt;p&gt;You are right. This is weird.&amp;nbsp;But I checked all the other log entries and there the&amp;nbsp;timeout is correctly used, even with 300 seconds.&lt;/p&gt;&lt;p&gt;Anyway, I am going to try connecting to the mailserver with a more direct connection and send you an update asap.&lt;/p&gt;
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft