login about faq

I have an automated process that is experiencing a read timeout on sending an email. Every day, this process errors out because the read timeout has expired. Please see log below. If I set the ReadTimeout property on the MailMan object to 110, will increase the timeout length from 30 seconds to 110 seconds? Do I need to adjust the ConnectionTimeout property? I want to say no because I am not experiencing a timeout on the connection. What usually triggers the read timeout? What would the remote server be processing on their end that would take more than 30 seconds? Are they validating the email recipients?

...
    smtpRecipients: Elapsed time: 203 millisec
    email_size: 30004
    smtpSendData: Elapsed time: 78 millisec
    Sent DATA terminator
    Timeout waiting to read socket or accept connection
    timeoutMs: 30000
    ReadTimeout expired, abandoning attempt to retrieve SMTP response.
    smtpFinalResponse: Elapsed time: 30203 millisec
    smtpConversation: Elapsed time: 30484 millisec
...

asked Feb 08 '13 at 09:05

chilkat's gravatar image

chilkat ♦♦
11.8k316358420


1) If I set the ReadTimeout property on the MailMan object to 110, will increase the timeout length from 30 seconds to 110 seconds?

Yes, this will increase the timeout length to 110 seconds.

2) Do I need to adjust the ConnectTimeout property?

No, the ConnectTimeout property only applies in making the TCP/IP connection. In other words, it determines how long to wait for the server to accept a connection request.

3) What usually triggers the read timeout?

The obvious: a response should be coming from the server, but it does not arrive in the amount of time specified by the ReadTimeout property. In this case, the SMTP client (Chilkat) is waiting for the final response after sending the MIME text (i.e. the DATA) of the email.

4) What would the remote server be processing on their end that would take more than 30 seconds? Are they validating the email recipients?

I wouldn't have any idea. It would really be dependent on the specific SMTP server implementation.

link

answered Feb 08 '13 at 09:12

chilkat's gravatar image

chilkat ♦♦
11.8k316358420

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×79
×23

Asked: Feb 08 '13 at 09:05

Seen: 2,950 times

Last updated: Feb 08 '13 at 09:12

powered by OSQA