timeout

Stored procedure time out - but fine when run from SSMS

I have a stored procedure which is erroring with "Timeout expired". The code involved is ADO/VB6. The stored procedure itself is not a problem, you can run it in a query window and it takes less than a second. The code used to get the connection etc is also modularised and in use all over a huge application. It is only in this one pla...

How do I store javascript functions in a queue for them to be executed eventually

Hi, I have created a Queue class in javascript and I would like to store functions as data in a queue. That way I can build up requests (function calls) and respond to them when I need to (actually executing the function). Is there any way to store a function as data, somewhat similar to .setTimeout("doSomething()", 1000); except it...

TimeoutException in simultaneous calls to WCF services from Silverlight application

Analysing log files I've noticed that ~1% of service calls ended with TimeoutException on the Silverlight client side. The services (wcf) are quite simple and do not perform long computations. According the log all calls to the services are always processed in less that 1 sec (even when TimeoutException is occurred on the client!), so it...

How to see SQL 2008 Locks and Blocked Tables

Hi. During the ASP.NET execution of my app, it seems SQL 2008 Express holds some lock, and I get Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding Maybe some of my query is not optimized. Visual Studio crashes with: Microsoft Visual Studio may be unstable now. ...

Show and hide divs at a specific time interval using jQuery

I would like to show divs at a specific interval (10 seconds) and show next div and as go on and repeat the same. ** Sequence : ** On 10th second show div1 , hide other divs , After 5seconds interval Show div 2 and hide other divs, After 5 seconds interval Show div 3 and hide other divs, and repeat the same for every 10 secon...

Concurrent Haskell Actions with Timeout

Hi,how could one implement a function in concurrent haskell that either returns 'a' successfully or due to timeout 'b'? timed :: Int → IO a → b → IO (Either a b) timed max act def = do Best Regards, Cetin SertNote: the signature of timed can be completely or slightly different. ...

Socket Timeout in C++ Linux

Ok first of all I like to mention what im doing is completely ethical and yes I am port scanning. The program runs fine when the port is open but when I get to a closed socket the program halts for a very long time because there is no time-out clause. Below is the following code int main(){ int err, net; struct hostent *host; stru...

Does Sql make implicit rollback if my rollback timeout?

I have a dotnet applicaton that executes a set of insert,update,delete statements in transactionaly manner The code is like this try { mytrans = mycon.begintransaction(); //execute sql statements mytrans.commit(); } catch(Exception) { mytrans.rollback(); } The problem is that sometimes we faced timeout exceptions in rollback and I fo...

cron job seems to be timing out

Have the following cronjob set up in root's crontab: (centos 5.x) 2 * * * * /usr/bin/curl --basic --user 'user:pass' http://localhost/cron/do_some_action > /var/www/app/cronlog.log Invoking the actual command works as expected, however when the cronjob runs, it always times out. I've used set_time_limit() and related php.ini settings ...

timeout include script in php

Hi, I'm including a local class that requests a file from a remote server. This process however, is rather unreliable (in the sense that the remote server is often overloaded), and I would have to wait a few seconds (about 20 or so) before the include gives up and continues. Now, I would like to have a time limit on the execution time o...

Placing a web.config file in a view directory

I am having the standard issue timeout exception in my production environment whereby, after 90 seconds, the thread will be killed. For the vast majority of my site this isn't a problem. However, my sitemap generator is an exception to the rule. Because it relies on the routes created in the application, I have chosen to create it ins...

Pattern for a back off mechanism in a client server system

I have a system which needs to send requests to an external system, whenever a user does search on my system. If the external system is down or is taking an unusually long time to answer, I would like my system to "back off" for a while. Instead of trying to make more requests to the external system, I want to just let the user of my s...

Coldfusion sessions not being timed out

We have 2 core applications running on our servers on CF 8, and both have the exact same session timeout set in the application CFC (2 hours at the moment). However we're seeing that sessions are spiralling out of control for one of the applications (currently at 120,000+ on one server), lets call it AppA whereas AppB seems fine (and App...

ColdFusion COM object manipulation of MS Word 2000 dies after 100 seconds

I'm using ColdFusion 7 on a Windows 2003 server to talk to a default installation of Microsoft Word 2000 using COM objects. The goal is to generate a document with some tables in it. That much I'm able to do. The CPU spikes to 100% for the duration, but my code is functional and if it's short, it works. The problem I'm encountering is w...

WCF timeout exception detailed investigation

We have an application that has a WCF service (*.svc) running on IIS7 and various clients querying the service. The server is running Win 2008 Server. The clients are running either Windows 2008 Server or Windows 2003 server. I am getting the following exception, which I have seen can in fact be related to a large number of potential WCF...

How to test WCF timeout settings?

Hi, How can I unit test the effect of each WCF timeout setting? I want to ensure that I select good values and I also want to make sure that my exception handling code is solid. I created client program and a server WCF service to test the timeout settings. In my service implementation, I added a Thread.Sleep(5000). On the client-side,...

Reliable JRuby Timeout for HTTP Requests

I'm having trouble with Timeouts which do not work reliably under JRuby (Linux). More specifically, if I send a HEAD Request to a remote server and this server is busy (does not respond), the configured timeout does not fire and my application stalls for a long time. I tried both, setting read_timeout and using the timeout() function but...

Query times out in .Net SqlCommand.ExecuteNonQuery, works in SQL Server Management Studio

Update: Problem solved, and staying solved. If you want to see the site in action, visit Tweet08 I've got several queries that act differently in SSMS versus when run inside my .Net application. The SSMS executes fine in under a second. The .Net call times out after 120 seconds (connection default timeout). I did a SQL Trace (and col...

Forms authentication timeout + redirect with Page Methods

This has been asked before, but there was no really good answer, so I wanted to get some fresh thoughts on this. I have a website using forms authentication. I have a page that uses page methods to perform various actions. The user is idle on the page past the timeout, then performs an action that calls the page method. When the page...

canonical way to read plist from URL into NSDictionary? How to control timeout?

I have a servlet that serves up a plist XML file. What's the best way to slup this into an NSDictionary? I have this basically working with: NSDictionary* dict = [ [ NSDictionary alloc] initWithContentsOfURL: [NSURL URLWithString: @"http://example.com/blah"] ]; But then I have no control over the timeout; I'd rather not have m...