timeout

NSMutableURLRequest timeout issues

Hello, I'm using Eric Czarny's XML-RPC framework for my iPhone app. There is an XMLRPCRequest class which contains an NSMutableURLRequest object. I wanted to set it's timeout to say 10 or 20 seconds, however regardless of that I always measure a timeout of about 75 seconds. Now according to this post, the standard timeout for POST reque...

Ruby timeout a block of code after n *milli* seconds

In Ruby, I need to time out the execution of a block of code after n milli seconds. I know that the Ruby Timeout library supports timeouts in seconds: http://ruby-doc.org/stdlib/libdoc/timeout/rdoc/index.html Is this possible? ...

How does Jboss Timeout works?

How does timeout in jboss works? How does a web-app knows when to re-direct to a login page? Just to clarify! -I know how to configure timeout on jboss. My question is, how does Jboss know that a session has timed out and when it does, how do you configure it to send the request to login page once the timeout has happened? ...

IIS & IE timeouts for non-idle requests

Our web application users need to download a huge file (>1.5GB). It is not a file actually, but data retrieved by our application from the database. They send a web request, and our application returns chunks of data.This, obviously, takes time. However, the connection is not idle, or inactive, during the time of the download. The serve...

Google App Engine's Blobstore is applicable to 30 seconds request timeout?

Google App Engine imposes a 30 seconds timeout for every request. Is this applicable when uploading to the blobstore? Thanks! ...

Visual Studio 2003 - opening ASP.NET project - getting “The operation timed out” error message

On a Windows 2003 server I installed several versions of Visual Studio, also Visual Studio 2003. On the server I want to develop two different webapplications. One web application is working, but I go problems on the other one. When I try to open the application (after a rebuild), I get the error: "The Web server reported the following ...

How to set timeout for urlfetch in Google App Engine?

I'm trying to have Django (on top of GAE) fetch data from another web service. I'm often hit with error like this: ApplicationError: 2 timed out Request Method: GET Request URL:http://localhost:8080/ Exception Type: DownloadError Exception Value: ApplicationError: 2 timed out Exception Location: /google_...

Using httplib2 in python 3 properly? (Timeout problems)

Hey, first time post, I'm really stuck on httplib2. I've been reading up on it from diveintopython3.org, but it mentions nothing about a timeout function. I look up the documentation, but the only thing I see is an ability to put a timeout int but there are no units specified (seconds? milliseconds? What's the default if None?) This is w...

Set a timeout and get a result from a delegate thread

I've never had much to do with async callbacks and delegates before on WinForms (i.e., not AJAX) so I'm hoping someone can help me out with what I'm trying to do here. I'm logging into a third-party service over the web. The Login() method is of type Void. Because this can take up to 10 seconds (very occasionally longer) I want to do t...

Setting a timeout for Ajax.BeginForm() in MVC

I have a query that takes a while to return results on our staging box and it has been wired to the front-end using an ASP.NET MVC Ajax.BeginForm(). I have searched the help and the internet but can't seem to find a way to extend the timeout for this operation. ...

JBoss transaction timeout setting?

We have a timer service triggered task in JBoss 5.1.0.GA application and the problem is that we cannot change the transaction time out. This long Lucene indexing can take longer than the default 300 second limit. The question is how to change the timeout value, adding @TransactionTimeout(1800) to the worker method or the class did not ...

Manually Timing out a C# Thread

I have a need to add a timeout to a long running thread. We're having some external issues which can sometimes cause that thread to hang at a certain line of code indefinitely. To make our process more robust, we would like to detect that the thread is no longer actively running/polling and abort the thread. This would let us clean up ...

Java socket close timeout

In java when you close a socket it doesn't do anything anymore but it actually closes the tcp connection after a timeout time. I need thousands of sockets and I want them to be closed exactly after closed them not after wasting my time and my resources! What can I do? Thank you. ...

Does the StuckThreadMaxTime parameter in Weblogic 10.3 aborts the thread ?

I get below message on application console when a some process takes unusually long time to complete. I am having doubt whether this message implies that my thread is aborted or can it continue after this ? <[STUCK] ExecuteThread: '0' for q ueue: 'weblogic.kernel.Default (self-tuning)' has been busy for "609" seconds working on...

ajax synchronous call with timeout

New to ajax, so asking a very basic question. -- Is there no way to make a Synchronous ajax call (async:false) with timeout set on it.? http://www.ajaxtoolbox.com/request/ Timeout works perfect with Asynchronous call though in my application, but for one particular scenario, I need a Synchronous call (the javascript should actually wa...

Database connection for prepared statements

Using an ODBC connection to a mysql database, the connection times-out after a period of 8 hours (the default). In order for my application to be resilient, it must recreate this connection to issue a prepared statement query. Is it possible to issue a new database connection for a prepared statement? Does it make sense to do so? It ...

How to add a timeout to a function in Python

Many attempts have been made in the past to add timeout functionality in Python such that when a specified time limit expired, waiting code could move on. Unfortunately, previous recipes either allowed the running function to continue running and consuming resources or else killed the function using a platform-specific method of thread t...

SqlBulkCopy.WriteToServer not reliably obeying BulkCopyTimeout

I need to count sequential timeout exceptions from SqlBulkCopy. To test this, I use an external app to start a transaction & lock up the target table. Only on the first call does SqlBulkCopy throw a timeout exception when expected. We've tried using an external connection & transaction, as well as using a connection string and internal...

Potential problems in setting AsyncPostBackTimeout to large value (300s)?

Are there any reasons to not set the ScriptManager.AsyncPostBackTimeout to a (comparitively) large value like 5 minutes? I have a report that takes anywhere from 30 to 180 seconds to run, which causes a Sys.WebForms.PageRequestManagerTimeoutException: The server request timed out. error. In all my searching I can't find a downside of...

what is the default global timeout for an Ajax request in Prototype?

I cannot find how can I attach an timeout option to the Ajax prototype call or what is the default value for it. ...