473,563 Members | 2,653 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1491
that's
"timeout calling local sendmail"
not
"timeout calling local se"
fl*****@gmail.c om 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.c om <fl*****@gmail. comwrote:
that's
"timeout calling local sendmail"
not
"timeout calling local se"
fl*****@gmail.c om 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
19391
by: ll | last post by:
Hi, How to specify the timeout value(ms) for a thread? Thanks.
8
1782
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 timeout after 90 seconds. Even if the ExecutionTimeout parameter in the web.config is set or the Server.ScriptTimeout is set in the aspx.cs still the page...
3
9066
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. If the web service is taking a long time to complete, the aspx page returns a ‘The operation has timed-out.’ Message to the web browser after...
0
1188
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. Specifically, I'm calling socket.defaultttimeout(10), then calling urllib2.urlopen to fetch a web page that never gets delivered. My code waits about 30...
1
10414
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 connection was closed: An unexpected error occurred on a receive. at System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequest...
3
5856
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 timeout period elapsed prior to completion of the operation or the server is not responding. I have changed the setting for Execution time-out to 0...
4
4447
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 in progress) for a long period of time. I was thinking about putting the timeout value into an attribute: def settimeout(self, secs):...
2
6434
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 string timeout is set to 3000s. SQL Command timeout is set to 3000s. IIS Connection Timeout is set to 120s. ASP.NET script timeout is not set so must...
2
3455
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: AsyncCallback cb = new AsyncCallback(ServiceCallback); IAsyncResult result1 = BeginInvoke(methodName, parameters, cb, this); if(result1.IsCompleted == false)...
0
7664
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7885
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8106
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
6250
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5213
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3642
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1198
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
923
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.