timeout

What does the sys.dm_exec_query_optimizer_info "timeout" record indicate?

During an investigation of some client machines losing their connection with SQL Server 2005, I ran into the following line of code on the web: Select * FROM sys.dm_exec_query_optimizer_info WHERE counter = 'timeout' When I run this query on our server - we are getting the following results: counter - occurrence - value timeo...

How do you prevent a .NET service from timing out while waiting on a dependent service

I have a C# based service that is dependent on the MSMQ service. In some scenarios the MSMQ service takes a long time to start, apparently resulting in a timeout of the C# service. How can I fix this programatically? Edit: It appears that the bug report I was working on was incorrect, the service does indeed start eventually. I apologiz...

write to fifo/pipe from shell, with timeout

I have a pair of shell programs that talk over a named pipe. The reader creates the pipe when it starts, and removes it when it exits. Sometimes, the writer will attempt to write to the pipe between the time that the reader stops reading and the time that it removes the pipe. reader: while condition; do read data <$PIPE; do_stuff; done...

ASP.Net Session Timeout detection: Is Session.IsNewSession and SessionCookie detection the best way to do this?

When my ASP.Net session times out (and forms authentication as well) and I try to hit a page, I am automatically redirected to my default login.aspx page. Before the page loads I need to determine whether this is a timeout situation and if so - redirect to timeout.aspx. The articles below specify that if IsNewSession is true, and a se...

how to import a very large query over phpmyadmin?

if my host does not allow me to upload a file directly to my mysql folder and i can only do so throught phpmyadmin? are there any alternatives aside from its native import feature so that my connection would not time out while uploading a query that's around 8mb? ...

How do I implement 'tail -f' with timeout-on-read in Perl?

My question is the antithesis of How do I process input immediately instead of waiting for newline. I want to continue reading a growing log file, but stop after the file has not grown for a specified number of seconds. I found Sys::AlarmCall at CPAN, and tried as shown below, but it doesn't time-out when I run: perl progress.tracker....

SQL Server simple Insert statement times out

Hi, I have a simple table with 6 columns. Most of the time any insert statements to it works just fine, but once in a while I'm getting a DB Timeout exception: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. The statement has been terminated. Timeout is set to 10 seconds...

LINQ to SQL query fails using two Contains statements

I have two tables, DH_MASTER and DH_ALIAS. DH_MASTER contains information about a person, including their name. DH_ALIAS contains AKA records about the person. The tables are linked by the Operator field which is a primary key in DH_MASTER. The users want to search by the name stored in DH_MASTER as well as search through all of thei...

A priority queue which allows efficient priority update?

UPDATE: Here's my implementation of Hashed Timing Wheels. Please let me know if you have an idea to improve the performance and concurrency. (20-Jan-2009) // Sample usage: public static void main(String[] args) throws Exception { Timer timer = new HashedWheelTimer(); for (int i = 0; i < 100000; i ++) { timer.newTimeout(...

Big difference in execution time of stored proc between Managment Studio and TableAdapter.

How could a stored procdure run in 10 seconds via Management Studio, but take 15 minutes via a TableAdapter for the same inputs? It is repeatable, meaning I have run it at least three times in each environment, and Management Studio is consistently about 100 times faster. I'm using .net 2.0 and SQL Server 2000 In SQL Server Management...

.NET: Asynchronous rollback due to Transaction timeout

In a C# project, I have a (volatile) transactional resource enlisted in a System.Transactions.Transaction. When a transaction timeout occurs, the rollback is executed in a worker thread: Obviously, the transaction uses a timer and calls a timer callback when the timer elapses (there is very little documentation from MS on this issue). Th...

Where to set session timeout?

The application sets session.timeout in Application_AcquireRequestState event handler. Before session expires, there is notification window popping up. It resets session timeout to, say, 3 minutes (normally, it is 30 minutes), through Application_AcquireRequestState. The notification offers user an option to extend session for another ...

MacFUSE: Keepalive?

Is there a way to configure MacFUSE to keep a mounted volume alive if the remote host is set to break the connection due to inactivity? If there is no direct way to configure this, would there be a way to write a script to accomplish this? ...

JQuery timeout not execute

Hi All, i'have a js client with JQuery, this js call a page (GET HTTP) and set timeout. The aim of timeout is: "do something if the server not responds". If i use Apache web server for manage a page, the timeout perform. If i use IIS 6.0 the timeout is "skipped" and the page attempt (anyway) the server response. This is the script: //c...

JQuery problem with timeout

Hi All, I have found a problem with use JQuery timeout, i have a page with script, it's set a timeout and waiting response from server. The problem is when timeout have to perform, in short words, it "no action". I think that script not interrupt the connection with server and wait for server response, because in server side the connect...

Different performance between Java and c# code when testing URL

When running the following Java code, I get very accurate and consistent results in determining if the web page I'm testing is up. protected synchronized boolean checkUrl(HttpURLConnection connection){ boolean error = false; //HttpURLConnection connection = null; GregorianCalendar calendar = new GregorianCalendar(); try{ if(conne...

ASP.NET MVC and httpRuntime executionTimeout

I would like to increase the httpruntime executionTimeout for a subsection of an ASP.NET MVC application. In a regular Web App, you could use <configuration> <location path="UploadPage.aspx"> <httpRuntime executionTimeout="600"/> </location> </configuration> however there really is not the idea of "Folders" in ASP.NET MVC, so how wo...

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

Occasionally, when I open a visual studio 2003 ASP.NET project it seems to spend forever loading up then finally displays the following error message: "The web server reported the following error while attempting to create or open the web project located at the following URL: http://localhost/myprojectname. The operation timed out." An...

How can I change the timeout for a manually executed query in SQL Server?

I have a simple SQL script that I execute manually from Visual Studio. It is a data generation script so I expect it to take a couple of minutes to run. But I get the following error. Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. I don wan't to change any gl...

Extending Session Timeout in PHP

I want to up the time my users will stay logged into my site without getting automatically logged out after a period of inactivity. I'm tracking the logged in status using PHP sessions. Was having trouble tracking down a definitive source for how to do this. Any ideas? EDIT: OH! One more thing is, I want to control this from my .htacc...