Questions tagged [timeout]

The timeout term refers to a predefined period of time allowed to elapse before an event is to occur. Timeout may also refer to an event that takes place after a specified period of time elapses.

A timeout refers to both the process of defining, setting and controlling a predefined interval of time specifically related to executing a process when it has elapsed, as well as the process to execute itself.

A timeout may be cancelled, reset or reconfigured at any time, or allowed to run its course. Timeouts typically run once, although may be reused if the required functionality is required more than once.

In computing a timeout may be used to execute a predefined block of code after a specified amount of time, typically to throttle or control event flow or scope digest.

9712 questions
4
votes
2 answers

How can I download a file using WebClient in C# with firing the eventhandlers and supporting the timeout property?

I'm developing a C# project to download the files from the internet. I'll show the progresses of them while the downloads are going. And I should support the time-out property. I've tried to use the WebClient class. There are DownloadFile() and…
Yun
  • 5,233
  • 4
  • 21
  • 38
4
votes
1 answer

How can I make an ant prompt use the default value if not entered within a given time?

Many ant scripts I write use a default value, and these default values are almost exclusive. I.e. only occasionally will I want to run it without the default values. A lot of times, these scripts take enough time that it makes sense to go do…
corsiKa
  • 81,495
  • 25
  • 153
  • 204
4
votes
0 answers

Dropbox SDK upload timeout error "-1001"

I am trying to use the Dropbox SDK to sync my application, but I have come across a bit of a snag. On a laptop running OS X Lion the syncing works perfectly fine, it uploads and downloads without a hitch, but when I try it (with the exact same data)…
AengusMcMillin
  • 279
  • 2
  • 9
4
votes
4 answers

How to timeout subprocess in Ruby

I want to test that a process is working so I run: cmd = "my unix command" results = `#{cmd}` How can I add a timeout to the command so that if it takes more than x seconds I can assume that it is not working?
Josh
  • 5,631
  • 1
  • 28
  • 54
4
votes
4 answers

Tomcat fails on heavy load

I'm running a heavy db-based GWT application on a debian VPS using tomcat server 7 (& JRE 1.6). My app contains a lot of java servlets which communicate with MySQL5 database via a tomcat connection pool (without connection pooling mysql will crash…
Ehsan Khodarahmi
  • 4,772
  • 10
  • 60
  • 87
4
votes
3 answers

PHP lose Session Data -> Session Files are deleted too quickly

I got stuck in a $_SESSION problem, while $_SESSION is randomly losing its data. I have a form with different pages and the user has a specific amount of time to get through all pages. So I set a session variable on the first page and check it on…
Kelzama
  • 107
  • 1
  • 11
4
votes
1 answer

nginx/gunicorn connection hanging for 60 seconds

I'm doing a HTTP POST request against a nginx->gunicorn->Django app. Response body comes back quickly, but the request doesn't finish completely for about 60 more seconds. By "finish completely" I mean that various clients I've tried (Chrome, wget,…
Pēteris Caune
  • 43,578
  • 6
  • 59
  • 81
4
votes
1 answer

Best approach to Timeout using HttpWebRequest.BeginGetResponse

HttpWebRequest.BeginGetResponse doesn´t respect any Timeout properties from HttpWebRequest(Timeout or ReadWriteTimeout). I read some approaches to get the same results, but I don't know if it's the best way to do it and if I should use for few calls…
Felipe Pessoto
  • 6,855
  • 10
  • 42
  • 73
4
votes
3 answers

Timeout on Webview Android

Is there a way to set the timeout value in WebView? I want the WebView to be time-outed if the url is too slow to response or if the site doesn't load in 10 seconds. I don't know really where I should start :( I have 2 classes, the first one is…
Tirolel
  • 928
  • 3
  • 17
  • 43
4
votes
6 answers

First call to web service each day is slow

While building this web service and the app that calls it, we have noticed that the first call to the web service each day is extremely slow. It even will time out on some days. However, every call after that work great. Can anybody shed light on…
Justin Balvanz
  • 1,186
  • 3
  • 12
  • 19
4
votes
3 answers

How to set timeout for a program?

I'm currently trying to make a small testing application for various programming tasks. It will run executable file which will generate output on another file and then compare it with answer. This far I think I will be able to get easy, but I have a…
enoyhs
  • 2,049
  • 2
  • 16
  • 17
4
votes
1 answer

Alternatives for Javascript Synchronous XMLHttpRequest (as timing out in Safari)

Short version: Looking for a method to wait for an Asynch XHR request or a way to get Synch XHR working in Safari. Much longer version: I'm working on a web service that uses various external data sources mashed together. I am using a Javacript…
Peter Gross
  • 213
  • 2
  • 4
  • 14
4
votes
1 answer

MySQL "wait_timeout" not being honored for long query?

I'm trying to test the wait_timeout MySQL setting which seems to be ignored. PHP script:
Max
  • 12,794
  • 30
  • 90
  • 142
3
votes
1 answer

Specifying timeout while fetching/putting data in memcache (django)

I have a django based http server and I use django.core.cache.backends.memcached.MemcachedCache as the client library to access memcache. I want to know whether we can set a timeout or something (say 500ms.) so that the call to memcached returns…
Rajat
  • 1,766
  • 2
  • 21
  • 42
3
votes
3 answers

Python urllib2 timeout when using Tor as proxy?

I am using Python's urllib2 with Tor as a proxy to access a website. When I open the site's main page it works fine but when I try to view the login page (not actually log-in but just view it) I get the following error... URLError:
user123304
  • 31
  • 1
  • 2
1 2 3
99
100