timeout

Timed sales in different timezones

Hi peeps, working on a website that will sell one item each day that will run for a period of hours specified by me. The site is much like groupon where when the timelimit is up, it will end the deal. My problem is how do i go about implementing this worldwide where different countries have different timezones? Im trying to refrain from ...

What are the issues with having a long open connection to a web server from a device connected via wifi?

Hi there I am aware of timeout settings for certain executions over the internet. My iphone application is downloading videos over the internet via a wifi router connection. I've heard that a connection like this shouldn't be open for more than 240secs? Is this true? What dangers/security threats/issues/etc will I encounter the more ...

How to abort XMLHttpRequest if the connection timeout?

I'm experiencing an issue with XMLHttpRequest. If there is no Internet connection, my request is not timing out and thus freezing the browser. Here is the request code: var jsonData = new XMLHttpRequest(); jsonData.open('GET', urltest, false); jsonData.Timeout = 100; jsonData.send(null); if(jsonData.status == 200) { alert(json...

How can I run a long background process from a Perl CGI program?

I have a problem with a long running CGI and the timeout error: Timeout waiting for output from CGI script The client side is a form programmed in jQuery. The user input some data and receives a message that the analyses has been launch. The user don't expect to see receive more messages except an email with a link when the data h...

Does the Server ASP.Net timeout setting affect the client timeout setting?

I'm working with ASP.Net web services and am having a problem with a long-running process that takes about 5 minutes to complete, and it's timing out. To fix this, I was able to set the executionTimeout on the server's web.config to 10 minutes, and then set the .Timeout property on the Web Service object to approximately 9 minutes. Now...

Preventing a 504 Gateway Timeout with huge PHP script.

I'm currently running an Apache server (2.2) on my local machine (Windows) which I'm using to run some PHP scripts to take care of some tedious work. One of the scripts involves a ton of moving, resizing, and download / uploading files to another server. I would very much like the script to run constantly so that I don't have to baby the...

Visual Web Developer - Timeout expired always on one line of code, **only** when the web server is first started up

Hey, I have a model-view-controller based web application. When the application starts up, I first call a clearup stored procedure. This basically removes any rows from the database which are now irrelevant. For example if the company had deleted a category but I had missed out the line to delete all products within this category, this ...

How to wait forever for at least one byte using COMMTIMEOUTS?

How can I configure COMMTIMEOUTS to wait forever for at least one byte to be read? ...

RED5 Server connection timeouts although server is running

Hi, I have a problem with the red5 server. I was able to install ist and connections to http://MYIP:1935/ are recognized in the logs. When try to connect in browser to http: //MYIP:1935/oflaDemo/avatar.flv I get a file saving dialog (Filesize 0byte) Opening rtmp: //MYIP:8081/oflaDemo/avatar.flv in FLV Player produces the following erro...

Use ajax to get current time remaining to session timeout

I would like to pop up a box that warns the user of session timing out in 5 minutes. There are lots of examples of this on the net and I can figure something out. My question however is how to get the time remaining. All examples I read about set a client side timer to countdown from last postback. I would like to do something different...

Could this code kill my server ?

Hello Im having an ongoing issue with my site, it basically times out and dies. I have gotten to the point now where I have had to set the application pool to auto recycle every 5 minutes, but even that has failed as I’ve just got back from work and my email inbox is full of 4000 emails all with the same error. System.Data.SqlClient.Sq...

php mysql script gone wrong. please help

Hi guys im hoping someone can help, im working on a site and created this experimental script whitch populates a category menu dynamically based on the database entry it worked for a day and then suddenly stopped. i changed my includes for requires and it gave me this error message Fatal error: Maximum execution time of 30 seconds exc...

What is wrong with this functions recursion? (setTimeout issue)

Hi guys, I am writing a marquee script because I do not like the fact that with most marquee scripts when the marquee reaches the last item (thinking using a ul, so last item is the last li), it waits till that item is off screen, and then resets the position of the ul, and starts the scrolling all over agian. My approach is to create ...

javascript: pause setTimeout();

Hi guys, If I have an active timeout running that was set through var t = setTimeout("dosomething()", 5000), Is there anyway to pause and resume it? Is there any way to get the time remaining on the current timeout? or do I have to in a variable, when the timeout is set, store the current time, then we we pause, get the difference bet...

Java: Reasonable timeout period for URLConnection

By default the timeout for URLConnection is 0 which is unlimited. What is a reasonable value for XXXXX? URL url = ... URLConnection uCon = url.openConnection(); uCon.setConnectTimeout(XXXXXX); ...

Add delay before sending new ajax request using jquery

I have a list of links wich point to html pages. <ul id="item-list"> <li><a href="assets/data/item1.html">Item 1</a></li> <li><a href="assets/data/item2.html">Item 2</a></li> <li><a href="assets/data/item3.html">Item 3</a></li> <li><a href="assets/data/item3.html">Item 4</a></li> </ul> And i have a javascript(jquery) ...

Error: Timeout expired with transactions, MySql and Asp.net

I have a Asp.net web service that I connect to and that insert, update or delete max 30 rows in a large MySql table using transaction to make the process faster. The whole process should just run in a few secs. Sometimes I can see in the logs that the user gets error: Timeout expired. The timeout period elapsed prior to completion of th...

SQL Server, C#: Timeout exception on Transaction Rollback

Hey guys, I've got a strange problem. I have a .NET program and my process logic needs a long-running transaction (~20min) on a SQL Server 2005 database. That's ok, since nobody accesses the database in parallel. When something goes wrong, the transaction should be rolled back. Infrequently and without any visible pattern the Rollback(...

timeout and auto logout in asp.net 2.0 with IIS 7 even after doing all the possible settings

Hello, I have an ASP.NET 2.0 web site hosted on Windows Server 2008 with IIS 7. I am using InProc session mode (specified in web.config). My client wants the timeout to be of 3 hours, meaning if the web site is idle, session should remain alive for 3 hours. Currently, what is happening is that if the web site is idle for 20-30 min. and ...

How to maintain a persistent http connection in php?

hi, i've a little web interface which uploads a file on a server and then dumps that file in oracle db. but there are about 7 million records in it and web server get time out while reading and dumping that file. can someone please tell me how can i keep that session alive so that it doesn't get timeout when uploading, reading and dump...