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
1 answer

read_timeout in Nokogiri?

I'm fetching some weather data from an online xml doc using Nokogiri, and I would like to set up a timeout for graceful recovery in case the source can't be reached... My google searches show several possible methods for open-uri and Net::HTTP, but…
David Smith
4
votes
1 answer

What is PyCurl's default timeout

Well, I think the title of the question is very self explanatory, so you probably don't need to keep reading, but here it goes: I have been working with PyCurl for a while, and I've always set my timeouts using curlConnector =…
Savir
  • 17,568
  • 15
  • 82
  • 136
4
votes
2 answers

Solr connection timeout during indexing?

I have solrj client with infinite timeout(Solr4) server.server.setSoTimeout(0) server.server.setConnectionTimeout(0) When I index my data I have many timeouts on server side. Where can I update server side timeouts in solrconfig.xml or possible…
yura
  • 14,489
  • 21
  • 77
  • 126
4
votes
1 answer

Add timeout to hive jdbc connection

How can I add timeout for hive jdbc connection. When ever hive hangs, my application waiting for responses from hive. What I need is, after some specified time(may be in minutes), my application needs to stop listening from hive connection, do the…
user1651157
4
votes
2 answers

timeout in node mysql

as we knows node has some mysql modules, some are pure js implemented(like node-mysql), some are based on c libmysql. i quite prefer node-mysql because it doesn't need extra mysql library which seems more 'clean'. But i also notice that it does not…
tztxf
  • 173
  • 2
  • 8
4
votes
4 answers

How to get notified of session end?

I am wondering if I can handle a session timeout event. I need to make a function call to my function right before session timeouts or user left my page, or closed browser window. The most important part here is to have access to everything stored…
Maksim Vi.
  • 9,107
  • 12
  • 59
  • 85
4
votes
3 answers

What are some good ways to debug timeouts? (C#)

I'm building a site that runs fine for a few hours, but then *.asmx and *.ashx calls start timing out. The exception is: "Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool This may have occurred because all…
marclar
  • 3,026
  • 5
  • 35
  • 56
4
votes
1 answer

How to set the length of time a windows notification icon appears in Java

I've made a java application which connects to a server and a Windows system tray notification popup which alerts the user when the application has disconnected and reconnected. Here is the code: Image iconDisconnected =…
user1912424
  • 329
  • 3
  • 6
4
votes
1 answer

TcpClient TimeOuts vs. NetworkStream TimeOuts

In the below generic scenario: System.Net.Sockets.TcpClient TC = SomeHowObtained; System.Net.Sockets.NetworkStream NS = TC.GetStream(); there are 3 timeouts as far as I see: NS.ReadTimeout // 1 TC.SendTimeout // 2 TC.ReceiveTimeout //…
paul simmons
  • 5,568
  • 13
  • 51
  • 78
4
votes
1 answer

How to define Transaction Timeout during debugging application

I am testing whether option from app.config listed below Is applied to all transactions in the application. Transaction are defined using transaction scope in…
klashar
  • 2,519
  • 2
  • 28
  • 38
4
votes
1 answer

HTTP: What is better: large timeout or multiple retries?

I'm doing HTTP GET-requests from mobile devices (so network connection usually is not reliable) and wondering what would be a better approach: Try 1 request with a timeout of 60 sec or Try 3 requests each with a timeout of 20 secs Or any other…
user1863617
  • 129
  • 1
  • 7
4
votes
1 answer

Thread was being aborted - while looping a lot of rows

I load a datatable which has aprox. 60.000 rows. I loop these, and write them our like this to build a file: HttpContext.Current.Response.Write(lineItem); HttpContext.Current.Response.Write(Environment.NewLine); When…
Lars Holdgaard
  • 9,496
  • 26
  • 102
  • 182
4
votes
4 answers

How would I make my javascript timeout for only 3 seconds?

If 4e3 is equal to 4 seconds. What would I use for 3 Secs? or 2 Secs?
user1824806
  • 65
  • 1
  • 2
  • 8
4
votes
5 answers

GAE Golang - urlfetch timeout?

I am having issues with urlfetch's timeouts on Google App Engine in Go. The app does not appear to want to take a longer timeout than about 5 seconds (it ignores a longer timeout and times out after its own time). My code is: var TimeoutDuration…
ThePiachu
  • 8,695
  • 17
  • 65
  • 94
4
votes
3 answers

SQL Server long running query randomly timeout through .Net

We have a program that connects to our DB and run some Stored Procedures to get some data. The database is a SQL Server 2008 and the program runs locally. The connection is via TCP/IP, but shared memory is enabled. And the timeout of the connection…
Alex
  • 797
  • 10
  • 30