473,407 Members | 2,546 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

timeout calling local se

(Environment: RedHat Linux recent, Python 2.3.5)

We have a batch processing script that on occasion needs to send out an
email. We have a sendmail running locally.

Sometimes we get a socket timeout on sending that email. Increasing the
timeout to 30sec reduced but did not eliminate it.

It seems to happen more often when sending to some addresses in the UK,
but it's definitely not limited to that.

And, while we sometimes send a number of messages in a short period of
time, (a) it's all single-threaded, and (b) the failure is often but
not always the 1st message in the batch.

Any ideas on what's going on? I don't know much about the
thread/process model of sendmail to have any clue why this is
happening.

Aug 7 '06 #1
3 1480
that's
"timeout calling local sendmail"
not
"timeout calling local se"
fl*****@gmail.com wrote:
(Environment: RedHat Linux recent, Python 2.3.5)

We have a batch processing script that on occasion needs to send out an
email. We have a sendmail running locally.

Sometimes we get a socket timeout on sending that email. Increasing the
timeout to 30sec reduced but did not eliminate it.

It seems to happen more often when sending to some addresses in the UK,
but it's definitely not limited to that.

And, while we sometimes send a number of messages in a short period of
time, (a) it's all single-threaded, and (b) the failure is often but
not always the 1st message in the batch.

Any ideas on what's going on? I don't know much about the
thread/process model of sendmail to have any clue why this is
happening.
Aug 9 '06 #2
On 9 Aug 2006 08:22:03 -0700, fl*****@gmail.com <fl*****@gmail.comwrote:
that's
"timeout calling local sendmail"
not
"timeout calling local se"
fl*****@gmail.com wrote:
(Environment: RedHat Linux recent, Python 2.3.5)

We have a batch processing script that on occasion needs to send out an
email. We have a sendmail running locally.

Sometimes we get a socket timeout on sending that email. Increasing the
timeout to 30sec reduced but did not eliminate it.

It seems to happen more often when sending to some addresses in the UK,
but it's definitely not limited to that.

And, while we sometimes send a number of messages in a short period of
time, (a) it's all single-threaded, and (b) the failure is often but
not always the 1st message in the batch.

Any ideas on what's going on? I don't know much about the
thread/process model of sendmail to have any clue why this is
happening.

RFC 1123

http://www.freesoft.org/CIE/RFC/1123/109.htm

I find that a timeout of 120 seconds is the bare minimum. If the
timeout is too short you get a condition where the email is received
succesfully but appears to the sending server to have failed and a
retry may occur - so the recipient gets multiple copies.

HTH :)
Aug 9 '06 #3
That seems applicable to writing an SMTP server/daemon, but is it
necessary for a script client calling a local SendMail daemon?

Tim Williams wrote:
>

RFC 1123

http://www.freesoft.org/CIE/RFC/1123/109.htm

I find that a timeout of 120 seconds is the bare minimum. If the
timeout is too short you get a condition where the email is received
succesfully but appears to the sending server to have failed and a
retry may occur - so the recipient gets multiple copies.

HTH :)
Aug 11 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: ll | last post by:
Hi, How to specify the timeout value(ms) for a thread? Thanks.
8
by: Shalini | last post by:
If I have an ASPX page that is just sleeping for 3 minutes ormore and later does some processing and the ExecutionTimeout parameter in the machine.config is 90 seconds then the page does not...
3
by: Mike | last post by:
Timeout Calling Web Service I am calling a .NET 1.1 web service from an aspx page. The web service can take several minutes to complete its tasks before returning a message to the aspx page. ...
0
by: Dan M | last post by:
I'm writing a system monitor script that needs to load web pages. I'm using urllib2.urlopen to get the pages, and I'm attempting to set the timeout value using socket.defaulttimeout. ...
1
by: Greg Allen | last post by:
I have a timeout issue with a long running web service, and I can't figure out where the timeout value is coming from. In the client I end up getting the following exception: The underlying...
3
by: M Bourgon | last post by:
On SSMS 9.00.3042.00, any query that runs longer than 10 minutes gets the following error message: The statement has been terminated. Msg -2, Level 11, State 0, Line 0 Timeout expired. The...
4
by: Giampaolo Rodola' | last post by:
Hi there. We're talking about an asyncore-based server. Just for the heck of it I'd like to set a timeout which will disconnects the clients if they're inactive (i.e., no command or data transfer...
2
by: JimLad | last post by:
Hi, I've got a very basic asp.net page that accesses a very slow db query and siplays to screen. I'm hitting a timeout aftre about 3.5 to 4.5 minutes - seems to be variable. SQL connection...
2
by: shark | last post by:
Hi. I'm dealing with scenario when call to any web method ends up with timeout and I try to add the user a chance to retry (wait a little bit) My service proxy code looks like this: ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.