tagged [timeout]

How to sleep for five seconds in a batch file/cmd

How to sleep for five seconds in a batch file/cmd Windows's Snipping tool can capture the screen, but sometimes I want to capture the screen after five seconds, such as taking an image being displayed...

15 Jun at 15:51

MySQL Workbench: How to keep the connection alive

MySQL Workbench: How to keep the connection alive I am using MySQL Workbench. Also, I am running a batch of inserts, about 1000 lines total (Ex. `INSERT INTO mytable SELECT * FROM mysource1; INSERT IN...

Whats the difference between HttpClient.Timeout and using the WebRequestHandler timeout properties?

Whats the difference between HttpClient.Timeout and using the WebRequestHandler timeout properties? I can set the timeout of my `HttpClient` object directly with `HttpClient.Timeout` but I've recently...

ServiceStack.net Session End Event or Callback?

ServiceStack.net Session End Event or Callback? I'm using ServiceStack.Net with authentication and am using a custom session, all working great. I'd like to know if there is an event or callback, over...

Set timeout to an operation

Set timeout to an operation I have object `obj` which is 3rd party component, I don't know what is happening inside. What I know is if it take longer time, it is failed. how to setup a timeout mechani...

15 Feb at 12:21

javascript: pause setTimeout();

javascript: pause setTimeout(); If I have an active timeout running that was set through Is there anyway to pause and resume it? Is there any way to get the time remaining on the current timeout? or d...

22 Feb at 17:55

When to use TcpClient.ReceiveTimeout vs. NetworkStream.ReadTimeout?

When to use TcpClient.ReceiveTimeout vs. NetworkStream.ReadTimeout? When programming a TCP server I would like to set the timeout period for reading the request from the client: See the last two lines...

22 May at 07:45

ServiceStack Timeout - ASP.NET executionTimeout

ServiceStack Timeout - ASP.NET executionTimeout I'm using ServiceStack's JsonServiceClient but I've seen that despite setting the client timeout, the HTTP call still goes wrong after a certain period ...

12 Jan at 17:31

Set Command Timeout in entity framework 4.3

Set Command Timeout in entity framework 4.3 I cannot find the a way to set the command timeout of a linq query using entity framework 4.3 and its' DbContext. How do I increase Commandtimeout in entity...

How to modify the nodejs request default timeout time?

How to modify the nodejs request default timeout time? I'm using a Node/express server. The default timeout of express is 120,000 ms, but it is not enough for me. When my response reaches 120,000 ms, ...

30 Apr at 22:21

connection timeout property in connection string ignored

connection timeout property in connection string ignored I'm building an app in C#. I'm using a connection string like: But no matter what value I set as `x` (`Connection Timeout = x`), by putting a b...

15 Feb at 12:9

php timeout - set_time_limit(0); - don't work

php timeout - set_time_limit(0); - don't work I'm having a problem with my PHP file that takes more than 30 seconds to execute. After searching, I added `set_time_limit(0);` at the start of the code,c...

17 Aug at 04:20

Simple timeout in java

Simple timeout in java Can anyone guide me on how I can use a simple timeout in java? Basically in my project I'm executing a statement `br.readLine()`, which is reading a response from a modem. But s...

18 Oct at 18:26

set session timeout in ServiceStack?

set session timeout in ServiceStack? I'm attempting to use the new ServiceStack session feature. I've read through the help page, but I don't see anywhere that you configure the timeout (aka, the expi...

6 Sep at 22:32

"Update-Database" command fails with TimeOut exception

"Update-Database" command fails with TimeOut exception I'm using EF migrations and have a table with a lot of data. I need to change MaxLength of a concrete column (it hadn't length constraints). And ...

SqlCommand object, what length of time for CommandTimeout?

SqlCommand object, what length of time for CommandTimeout? How do I decide what length of time to use as a timeout when using an SqlCommand object? On parts of the code I'm working on (written by some...

11 Aug at 10:24

ssh server connect to host xxx port 22: Connection timed out on linux-ubuntu

ssh server connect to host xxx port 22: Connection timed out on linux-ubuntu I am trying to connect to remote server via ssh but getting connection timeout. I ran the following command and getting...

11 Jul at 06:37

Terminating idle mysql connections

Terminating idle mysql connections I see a lot of connections are open and remain idle for a long time, say 5 minutes. Is there any solution to terminate / close it from server without restarting the ...

26 Nov at 23:8

How to handle ETIMEDOUT error?

How to handle ETIMEDOUT error? How to handle etimedout error on this call ? ``` var remotePath = "myremoteurltocopy" var localStream = fs.createWriteStream("myfil");; var out = request({ uri: remo...

Adjusting CommandTimeout in Dapper.NET?

Adjusting CommandTimeout in Dapper.NET? I'm trying to run SQL backups through a stored procedure through Dapper (the rest of my app uses Dapper so I'd prefer to keep this portion running through it as...

9 Jan at 20:36

How can I tell when HttpClient has timed out?

How can I tell when HttpClient has timed out? As far as I can tell, there's no way to know that it's specifically a timeout that has occurred. Am I not looking in the right place, or am I missing some...

20 Jun at 09:12

NHibernate: how to set connection timeout

NHibernate: how to set connection timeout Is there any way to globally setup time you would wait for connecting to a given database, before a connection failure in NHibernate (connection timeout)? In ...

23 May at 12:2

Waiting for Target Device to Come Online

Waiting for Target Device to Come Online I recently updated to Android Studio 2.3, and now when I try to run the application, the emulator does not come online. It times out after 300 seconds. Additio...

15 Mar at 16:56

Implement C# Generic Timeout

Implement C# Generic Timeout I am looking for good ideas for implementing a generic way to have a single line (or anonymous delegate) of code execute with a timeout. I'm looking for a solution that ca...

Session timeout in ASP.NET

Session timeout in ASP.NET I am running an ASP.NET 2.0 application in IIS 6.0. I want session timeout to be 60 minutes rather than the default 20 minutes. I have done the following 1. Set in web.confi...

26 Mar at 14:30