timeout

Handling Web Service Timeouts While Performing Long-Running Database Tasks

The architecture of one of our products is a typical 3-tier solution: C# client WCF web service SQL Server database The client requests information from the web service. The web service hits the database for the information and returns it to the client. Here's the problem. Some of these queries can take a long, long time, and we do...

Sequentially firing multiple random timeouts in JavaScript

Hello All, I know at first glance (due to the title) this looks like one of the "Did you try searching Google before posting?" questions, but I can't seem to find an answer for the specific issue I'm experiencing. Sorry if I'm a noob.... still learning :) I need to simulate a pause in javascript, but the setTimeout(function_call, tim...

How can I impose my own timeout?

I have to use an API to make a call to a third party, and ideally use the response it returns. The API has a built-in 30 second timeout, and does not allow you to set that programatically. I need it to time out in 12 seconds. Here's the call I'm making: string response = theAPI.FunctionA(a, b, c, d); I've been thinking I might need ...

<netTcpBinding><binding closeTimeout="" What is the default value?

What is the default value for closeTimeout in WCF's netTcpBinding? ...

How to link another page when time runs out

I try to develop online exam app with JSP.So I want to link result page with parameters of existing page(exam page) when time runs out. I want to know how to add timer and link another page when time is up. ...

set timeout for jQuery UI draggable() to prevent locking effect

I'm using draggable(), but occasionally the draggable() seems to create a locking effect where the dragging effect persists even after the mouse button is released. Once this happens, the only fix is to refresh the page, which is a terrible way to go for an ajax-based site. So using the UI docs I'm trying to figure out a way to set a ti...

Migration of huge quantities of data to SQL

I need to migrate extremely large quantities of data (millions of files, Terabytes of data) to an SQL cluster. The migration process is partitioned into weekly migrations, with a few hundreds of new users (i.e request-generators) every week. So far things have run pretty smoothly, but lately i've discovered that the SQL cluster started ...

Do I need to call EndInvoke after a timeout?

On a web page, I am calling a third party who does not allow me to set timeout programatically. I call BeginInvoke and use the AsyncWaitHandle.WaitOne to wait a specified amount of time. If the call times out, I move on and forget about the thread call I began. My question is, do I still have to call EndInvoke somehow in a timeout sit...

Storing String in Session Variable Where Mode is StateServer

If I store a String value in my Session variable, do I need to Serialize / Deserialize it? I read that when you use in your web.config you need to serialize before you can store the value in session variable and you would then deserialize when you retrieve the value. I wonder if for example, you just place the string value to a ses...

How do I increase timeout for a cronjob/crontab?

I have written a script that gets data from solr for which date is within the specified period, and I run the script using as a daily cron. The problem is the cronjob does not complete the task. If I manually run the script (for the same time period), it works well. If I reduce the specified time period, the script runs from the cron as...

What's the difference between Session.Timeout and Server.ScriptTimeout?

We've got a ASP.net web app with a few pages that occasionally time out as the page loads (generally, these are all admin-type pages that do bug uploads / downloads with processing.) One of the solutions has been to bump both Session.Timeout and Server.ScriptTimeout up to very large numbers - which works fine. However, there's quite a ...

Session timeout in web applications

The session timeout in web applications typically denotes the idle time - i.e. the period of time when the user doesn't work with the application. Now, what if there is an automated script written that posts a request every 5 minutes - wouldn't that user's session go on endlessly? This being the case, won't this approach heavily load th...

browser timeouts while asp.net application keeps running

I'm encountering a situation where it takes a long time for ASP.NET to generate reply with the web page (more than 2 hours). It due to the codebehind running for a while (very long, slow loop). Browser (both IE & Firefox) stops waiting for the reply (after about an hour) and gives generic cannot display webpage error (similar to what yo...

Selenium click() event seems not to be always triggered => results in timeout?

Here's what I do: selenium.click("link=mylink"); selenium.waitForPageToLoad(60000); // do something, then navigate to a different page // (window focus is never changed in-between) selenium.click("link=mylink"); selenium.waitForPageToLoad(60000); The link "mylink" does exist, the first invocation of click() always works. But the se...

HttpURLConnections ignore timeouts and never return.

We are getting some unexpected results randomly from some servers when trying to open an InputStream from an HttpURLConnection. It seems like those servers would accept the connection and reply with a "stay-alive" header which will keep the Socket open but doesn't allow data to be sent back to the stream. That scenario makes an attempt ...

transaction timeout not working on hibernate with oracle

I am having problem setting the transaction timeout for hibernate on oracle. It does not work.Can anyone help? The "SaveOrUpdate" will not return within the stated 10 seconds. It will hang for a very long time. I am using Oracle 10r2. Hibernate Configuration File oracle.jdbc.driver.OracleDriver jdbc:oracle:thin:@9.9.9.9:1521...

timeout calling webservice yet data transfer still completes

I'm calling my webservice from a web page and getting a timeout despite setting very high values in my web.config files. This occurs intermittently when the file is usually pretty large but yet the file is still getting uploaded completely (as if the timeout DID NOT occur). Here is a function in my .aspx file which calls my ASMX proxy cl...

How do I determine when a user has an idle timeout in Django?

I would like to audit when a user has experienced an idle timeout in my Django application. In other words, if the user's session cookie's expiration date exceeds the SESSION_COOKIE_AGE found in settings.py, the user is redirected to the login page. When that occurs, an audit should also occur. By "audit", I mean a record should be wri...

Session timeout in ASP.NET

I am running an ASP.NET 2.0 application in IIS 6.0. I want session timeout to be 60 minutes rather than the default 20 minutes. I have done the following set in web.config Set session timeout to 60 minutes in IIS manager/Web site properties/ASP.NET configuration settings Set idle timeout to 60 minutes in application pool propertie...

Why does autoReconnect=true not seem to work?

I am using JDBC to connect to a MySQL server (no connection pooling I think). In the connection URL I have autoReconnect=true But my connection still times out. I've even checked conn.isClosed() and its false. But when I try to use the connection I get the following exception. com.mysql.jdbc.CommunicationsException: Communications ...