timeout

How to check for request time out , is there a notification I can set ?

Hello all I want to check for whether the request has timed out after some period. I know NSNotifiactionCenter ,but don't know how to set the request time out notification for it. thanks. ...

C++ Data Timeout with Blocking Call

I have a main loop which is fully data-driven: it has a blocking call to receive data and stores it as the 'most recent' (accessed elsewhere). Each piece of data has an associated lifespan, after which the data timesout and can no longer be considered valid. Each time I receive data I reset the timeout. Unfortunately I can currently onl...

.net c sharp Console Application : timeout

I am creating a console application using Enterprise Library my code is something like this DataSet ds = db.ExecuteDataSet(command); this actually calling a SP which take 10-15 minutes to complete , so my come throws a time-out error. Any idea how to overcome this. ...

Oracle: Set Query Timeout

Hello, i have a PL/SQL program which do a query to an AS400 database through Transparent Gateway. Sometimes the AS400 not responds to the query (may be network problems )and the PL/SQL program hangs. Is there any method to set a timeout to the Oracle query so that when certain amount of time passes an exception is risen? ...

.NET remoting increase timeout for one method

Hi, Does anybody knows, if there is a way (in .NET remoting) to set the timeout for one specific method different than the defined in the config? tia Martin ...

how to best manage processor from ASP.NET app on shared hosting

i am reading an RSS feed from a third party and then import data into a database. Occasionally this process times out. {"Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached."} At the moment i have th...

Possible BUG:ManagementScope.IsConnected does not work as described [RPC_E_DISCONNECTED]

Hi ! I am working on a management helper application in C#, which deals with long running wmi-connections and these breaks with the following error: Unhandled Exception: System.Runtime.InteropServices.COMException (0x80010108): The object invoked has disconnected from its clients. (Exception from HRESULT: 0x80010108 (RPC_E_DISCONNECTE...

cURL really slow

Does anybody know why could cURL under php5 be so damn slow to fail even at 45s timeout, downloading a few kb file on a speedO'light server? The code is here as requested (although I upped the timeouts even more for the script not to fail during execution and changed useragent to Mozilla/4.0 from initial Chrome): $ch = curl_init('http:...

which time out value determins how long will the idle tcp connection will be closed

after the connection has been established, and the two sides have no communication, which timeout value determins the idle connection be closed? ...

How to prevent that a channel exception make a WCF service stop working?

I created a WCF singleton service with netNamedPipeBinding. When a channel exception occurs, it leaves a channel in a faulty state, and all subsequent operations throws exceptions. How can I prevent this? I want that a TimeoutException, or any of the other common exceptions, to make only one operation fail, and not to make the service un...

Prevent session timeout on big uploads

Pretty obvious from the title I guess :) Well, problem is that if user is uploading a big file, his session might timeout in that time. How could I prevent session timeouts? I am using Struts2 with AjaxUpload. ...

Synchronization problems with Monitor class in WCF service

I have a self-hosted WCF service and I'm having the following problem: 15 minutes after creating the instance of the service TryEnter calls in operation contract methods constantly return false, but the TryEnter calls in Main function, which also uses synchronization via Monitor class, return true. Here's the description of my app and t...

ssms script trigger timeout

Using the SSMS (Sql server management studio) 2008 ide, I frequently get timeouts asking it to script a trigger (or table) to a new query editor window. This particular time, the error message is Script failed for Trigger 'spbldrom_update'. Additional information: - An exception occurred while executing a Trasact-SQL statement or batch...

"A timeout was reached while waiting for the service to connect" error after rebooting

I have a custom-written Windows service that I run on a number of Hyper-V VMs. The VMs get rebooted a couple times an hour as part of some automated tests being run. The service is set to automatic start and almost all of the time, it starts up fine. However, maybe 5% of the time, with no pattern that I can discern, the service fails to...

Downside to Forever Timeout in ASP.NET MVC?

As a user, when I see a "remember me" checkbox, I expect it to remember me -- not just when I close my browser, but when I come back to the site after a week. So in my ASP.NET MVC application I am considering the following web.config values: <authentication mode="Forms"> <forms defaultUrl="/" loginUrl="/account/login" name=".ASPXAU...

Icefaces: Network Connection Timeouts in IE only

My application has a long running request that takes over a minute. If I'm using Chrome or Firefox I just need to be patient. If I use IE however, at the one minute mark I get the popup that says I've reached a Network Connection Timeout. Why is that? ...

Handling network timeouts in Java

i have a java program connect to server through xot protocol. My lib i use can handle connect timeout, but there is no method like setSoTimeout() to handle timeout when send & recv data. so, anyone could suggest me some solution for this problem. thanks Quan ...

Server with Load Balancing is redirecting to wrong page

Hi! i'm having a problem using Load-Balancing on my server (using IIS 6). I have a Manager Website that works correctly most part of the time, but sometimes when i go to another page inside this manager, instead of redirecting to the correct page, it redirects to the login page of it. I don't think this is a timeout problem, because if ...

How can I configure Apache2/mod_python/Django to abort request processing after N seconds?

I recently spent a long while debugging something that turned out to be an infinite loop bug in my own code. Since I can't guarantee I'll never make that sort of mistake again, how can I configure my web server to terminate any apache2 subprocess that remains waiting for my python app to return a response for over N seconds? In this cas...

Any way to gracefully enforce a timeout limit when loading a slow external file via javascript?

I'm using javascript to include some content served up from a php file on another server. However, this other service can sometimes get flaky and either take a long time to load or will not load at all. Is there a way in JS to try to get the external data for x number of seconds before failing and displaying a "please try again" messag...