timeout

Why really short timeout in ASP.NET MVC?

I have an MVC 2 application where the timeout is set to 2880 (minutes as I understand it, but even if it is seconds there's a problem): <authentication mode="Forms"> <forms loginUrl="~/Account/LogOn" timeout="2880" /> </authentication> Now this should then mean 48 hours, or at least 48 minutes (if the value is seconds). But the user...

I keep getting "Timed Out" Errors on C# WebRequest

I've created a program that loads data from an HTTP request. It has to load it every 1 sec or 0.25 sec. However I've found that that many of my request - a few every minute - are timed out. It's weird because trying to reload the same address in a web browser, even when reloading very often, I always get the contents quickly. This is t...

What's the equivlent code for stringWithContentsOfURL using a NSURLRequest?

Hi, I used to have: NSURL *url = [NSURL URLWithString:escapedUrlString]; NSString *responseString = [NSString stringWithContentsOfURL:url encoding:NSUTF8StringEncoding error:nil]; But, I was reading online that I should probably be using an NSURLRequest instead if I want to add a timeout. The first code works fine, but the second co...

Adobe Air Network Timeouts

Hi, We've built an adobe air app that logs in and communicates with our server using ajax calls. However, there appears to be a problem with the App on computers which switch networks often. Such as laptop users who travel. The issue is that for some reason the app's ajax calls timeout and don't reach the server, even though the user ...

How setTimeout works

How setTimeout in Javascript works at the low level? Is there exist some hardware alarm clock? Or interpreter (through system) just asks periodically what time is now? ...

Timeout when I call a stored procedure in SQL Server 2008

From C# with EF, I call a long stored procedure with ExecuteStoreCommand 30 sec after the procedure starts, I have a timeout exception. How can I configure timeout ? On the server or in my C# client ? Thanks ...

Timeout a function in JavaScript/jQuery

Hello everyone I've got the following problem: I'm using Google Maps on my site. I've attached the following eventListener to the map itself: google.maps.event.addListener(map, 'bounds_changed', scheduleDelayedCallback); The event bounds_changed is called every time someone drags the map. My Problem is, that it is called several tim...

Getting SQL Server timeout error with correct credentials, immediate rejection with (deliberately) incorrect ones

This is a baffling one. My ASP.NET 3.5 app that was working fine suddenly started getting timeout errors... System.Data.SqlClient.SqlException: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding ...but only for requests with the correct username/password in the connection s...

HttpClient time-out slow under stress

I am using HttpClient 3.1 to connect to a different web services. I have set SO_TIMEOUT and ConnectionTimeout to 3 seconds. I am simulating a service that takes more than 3 seconds to respond. However, actual timeout is much longer, up to few minutes and more. In the end, server is out of memory and stalls. What is going on? Why my conn...

Detecting callback timeout

I have a ScriptControl which does a Callback to my page. Success and error responses from the server work fine and go to my client handler functions. However, if I stop the web server, then the request can't go through (should time out), but no client functions are ever called. I'm defining my handler functions through Page.ClientScri...

Reliability of ASP Session Timeout warning

I'm looking to warn the user when his or her session times out (I'm having weird timeout problems) and I found the following code: <% advanceWarning = 2 jsTimeout = (session.timeout - advanceWarning) * 60000 %> <script> window.setTimeout("alert('Session is about to expire');",<%=jsTimeout%>); </script> Is this reliable? ...

Implementing a timer in Android that's active all the time (even during screen timeout)

I've implemented a Service in my android app that starts a timer (using the standard java.util.Timer and java.util.TimerTask mechanism) to do some processing in the background on a pre-defined interval. public class BackgroundProcessingService extends Service { private int interval; private Timer timer = new Timer(); public void onCr...