timeout

HTTP 504 timeout after exactly 120 seconds

I have a server application which runs in the Amazon EC2 cloud. From my client (the browser) I make a HTTP request which uploads a file to the server which then processes the file. If there is a lot of processing (large file ), the server always times out with a 504 backend continuation error always exactly after 120 seconds. Though I ge...

Simple way to monitor result of request to detect session timeout?

I've got an Ajax app I would like to add sessions and logins to. Currently the app uses jQuery get shorthand to send a request that.ajaxRequest = $.get(query_string, function(data, textStatus, xhr) { // do somthing with data }); I have a system on the server that throws an error message if the session has expired. On the client...

SIGALRM Timeout -- How does it affect existing operations?

I am currently using select() to act as a timer. I have network receive operations which occur within a loop, and every few seconds a processing operation needs to occur. As a result, the select() statement's timeout constantly changes -- decreasing to zero over time and then restarting at 3. rv = select(selectmonitor+1, &readnet, NULL...

PHP: exit and show alert when looping a very long function is not responding...

I have this big function (1300+ lines of code) that takes data from the web and insert it into a local database. Each time the function runs its takes something like 20 seconds to complete and I need to run this function like a million times, so I use set_time_limit(0) to set the PHP time limit to infinite and I loop the function a milli...

Will a page taking 2-3 mins to render cause a javascript 'taking too long' warning

I'm using the jQuery document ready method - $(function() If the page takes too long to render (say 2mins+), will this be the reason for the page throwing a javascript taking too long to execute error/warning? ...

WCF Duplex timeout problem

Hi, I've been searching the web for the last two days, but by no means, I can get my WCF Duplex service working. I've created a demo project which can be download from skydrive: WCFDuplexDemo.zip For the purpose of minimizing the number of possible error causes, I've decided to just return a short string in the callback handler becaus...

How do I use AJAX to GET info from server without resetting the session timeout?

I would like to make a periodic background request from JavaScript on the client to my web application (ASP.NET, IIS 7), but I don't want the request to affect the ASP.NET session timeout. Is there a way to do this? ...

Elmah Timeout error on logging /insert all of a sudden

Alright we are quite sure the Elmah has become too big. Apparently the database is sitting at 17GB because of this. Were were getting timeout errors accessing /elmah first and now there are errors inserting data into it - hence exceptions are being thrown by the application. I just wanted to confirm can INSERT timeouts happen - or does ...

How do I skip a process or function if it doesn't give a result within fixed time??

In PHP I have seen that if a certain process or function isn't completed then the entire application which includes that function get delayed due to that. Say there is a search function which returns lots of result which includes more than 20 functions. An "x" function is taking too much time, hence the result page is getting delayed du...

PHP Timeouts and FTP function

In implementing the backup script I described in this serverfault question, I ran into some timeout issues that have prompted optimizations to the code (namely, backing up one file per execution of the script and doing everything I can to minimize the number of file-hashes I am calculating over the very large data files). So far, that ...

Why does this code print the same thing twice?

I am trying to write some small timeout code: t = Thread.new { sleep 3 } # <- The thread that will do stuff. Thread.new { sleep 2; t.kill; p 'hi!' } # <- The thread that will kill it after two seconds. t.join If the first thread completes it's job within two seconds, it will stop, and the main thread will have nothing to do. This will...

Cancelling long-running tasks in PLINQ

I am trying to use the NET 4.0 parallel task library to handle multiple FTS queries. If the query takes too much time, I want to cancel it and continue forward with processing the rest. This code doesn't stop when one query goes over the threshold. I think I'm calling it such that the cancel task and time limit is reached for the whol...

CakePHP Session Expires Even When Browser is Active

I am working on a e-commerce project using the Auth Component for authentication and Sessions Component for storing my cart. The problem is that the session gets cleared abruptly after a while even when I am actively browsing the site. I know this should be because of the Session timeout but just increasing the timeout value is not the ...

Silverlight WCF service calling exception

Hi; A Silverlight 3.0 application tries to call WCF service but the application can not even establish connection to the endpoint. I had checked URLs etc. and every thing seems ok. Accessing the service from other tools like browser works. When I debug application in Visual Studio when the first call to the service is made below output i...

Tomcat Mysql connection hangs after about 30 minutes

Facts: 1 Tomcat installation , 1 MySql and 2 applications ( app1 and app2 ) Hosted on shared hosting, so most of admin stuff with mysql is not possible When tomcat is started the applications ( both app1 and app2 ) are working fine After about 30 minutes... I try to log in my app1 Sometimes it logs in and sometimes it just sits there a...

PHP FTP Recursive download blocks with no apparent reason

Below are the functions that I use to download a FTP folder, recursively. I ran this several times, but after a successful run for like 1-2 mins, it always stops on the same spot, at the same file, generating this : ...... ...... Downloaded: login-bkg-bottom.gif Downloaded: login-bkg-tile.gif Downloaded: logo-ghost.png Downloaded: logo-...

Silverlight App. with OOB hangs/waits with Secure WCF Service

Hi all; I have an SL 4 application (with OOB and elevated privileges) which makes a connection to a secure WCF service. But WCF service is never called, the application waits to connect and afterwards timeouts. I have checked with fiddler and wireshark and I saw no connection is made, application just waits! As you know if elevated priv...

TransactionScope and Timeout Issue

Hi, We know that TransactionScope class can use user-defined timeout value. But timeout exception is thrown while exiting from the using {} block. How to throw this timeoutexception immediately after elapsed timeout value? ...

Python: drawbacks to using `signal.alert` to timeout I/O?

What are the disadvantages to using signal.alert to timeout Python I/O? I ask because I have found that socket.settimeout isn't entirely reliable[0] and I'd like finer control over the timeouts for different operations[1]. So, as far as I can tell, the drawbacks are: Added signal call overhead (but if you're doing I/O, this shouldn't...

SAXParserFactory URL Timeouts

I have the following piece of code: try{ SAXParserFactory spf = SAXParserFactory.newInstance(); SAXParser sp = spf.newSAXParser(); /* Get the XMLReader of the SAXParser we created. */ XMLReader r = sp.getXMLReader(); //This handles the xml and populates the entries array ...