timeout

Subsonic out of memory exception

I am currently using Subsonic 2.1 and I am receiving an error message when I attempt to use Subsonic to pull back large amounts of data (@ 140,000 records) from an sql database table. Is there an configuration setting that I need to change in order to allocated more memory for my application to complete the task? ...

How to extend the timeout of a SQL query

This is not a connection timeout as a connection to the database is made fine. The problem is that the stored procedure that I'm calling takes longer than, say, 30 seconds and causes a timeout. The code of the function looks something like this: SqlDatabase db = new SqlDatabase(connectionManager.SqlConnection.ConnectionString); return...

ActiveResource timeout not functioning

I'm trying to contact a REST API using ActiveResource on Rails 2.3.2. I'm attempting to use the timeout functionality so that if the resource I'm contacting is down I can fail quickly - I'm doing this with the following: class WorkspaceResource < ActiveResource::Base self.timeout = 5 self.site = "http://mysite.com/restAPI" end Ho...

WCF server-side timeout

Is there a way to tell a WCF service to response to a request (with or without aborting it's processing) after a certain amount of time, even if it didn't finish yet, something like a server-side timeout policy? ...

jdbc4 CommunicationsException

I have a machine running a java app talking to a mysql instance running on the same instance. the app uses jdbc4 drivers from mysql. I keep getting com.mysql.jdbc.exceptions.jdbc4.CommunicationsException at random times. Here is the whole message. Could not open JDBC Connection for transaction; nested exception is com.mysql.jdbc.ex...

Invoke with timeout

We have some code running in a background thread which needs to pop a dialog or some other user interaction, so we do the usual Invoke call on to the UI thread: Control.Invoke(SomeFunction); void SomeFunction() { ... } But, we came across a bug, our UI thread is sometimes not immediately responding to the Invoke call - we tracked i...

DBCP connection validation problem

I decided to use DBCP mainly because I was getting timeouts on my database connections. In theory, once you define a "validation query", DBCP will by default run that query on the connection before using it, so you always know the connection is OK. I set it up two weeks ago and it seemed to work. However, last night I got a timeout exce...

What is the timeout for starting a windows service?

I have deployed my windows service (using independently installer class and SC.EXE), but I get an error when I try to start it: --------------------------- Services --------------------------- Could not start the MyName service on Local Computer. Error 1053: The service did not respond to the start or control request in a timely fash...

How can I limit the time spent in a specific section of a Perl script?

Is there any way to build some time counter that enable parts of a script to run as long it ticks? For example, I have the following code: for my $i (0 .. $QUOTA-1) { build_dyna_file($i); comp_simu_exe; bin2txt2errormap($i); } Theoretically I want to run this loop for 3 minutes, even if the loop instructions haven't finish...

Open source file upload with no timeout on IIS6 with ASP, ASP.NET 2.0 or PHP5

I'm after a cross-platform cross-browser way of uploading files such that there is no timeout. Uploads aren't necessarily huge -- some just take a long time to upload because of the uploader's slow connection -- but the server times out anyway. I hear that there are methods to upload files in chunks so that somehow the server decides no...

Catch Timeout expired from ASP

Hello I have a ASP site (with VBScript) that connects to a SQL 2005 database. I would like to be able to catch the timeout expired error, through the err object, but I cannot manage to find any documentation that tells me the err.number for timeout expired. Can you help me with this one? ...

subprocess with timeout

In Python, I have a program snippet similar to the following that has the effect of running a custom command and returning the stdout data (or raise exception when exit code is non-zero): proc = subprocess.Popen( cmd, # keep stderr separate; or merge it with stdout (default). stderr=(subprocess.PIPE if ignore_stderr else sub...

How can i change table adapter's command time out.

Hi there. I'm using v.s 2008 with c#. I have a .xsd file and it has a table adapter. I want to change table adapter's command time. out. Thanks for your helps.. ...

Timeout behavior of different browsers?

I am writing an on line chat room based on AJAX/COMET. My design is: Request ----------------- wait -------------------------> send dump data ----------------- wait -------------------------> send dump data ----------------- wait -------------------------> send dump data ----------------- wait -------------------------> send dump d...

How can I block HTTP session timeouts in my Seam applications?

We have a rather restrictive architecture where we have a portal-like Seam application which launches further 'child' Seam applications inside an iFrame. We have a problem where the portal application's HTTP session times out even though the 'child' applications are still being used. We need to keep the HTTP session timeouts to keep th...

Sql Server 2005 and Linq Transactions

I'm having a problem with a transaction in linq-to-sql timing out after 30 seconds. Setting the CommandTimeout property on the DataContext does not seem to change the timeout. The error message I get is: "Timeout Expired. The timeout period elapsed prior to the completion of the operation or the server is not responding" Queries that...

How do you increase Internet Explorer 7's "Select as you type" timeout for comboboxes?

In Internet Explorer 7, you can select options from comboboxes by typing the first few letters of the value you're looking for. However, some people in our organisation are a bit slow and can't type their selection quick enough, with the result that the timeout is triggered and the "select as you type" process starts all over again. Exa...

asp .net timeout problem -- page can not be displayed

Hi, While generating reports we take page can not be displayed error message. There is no problem with the query, it works but it is a time consuming query. We changed the values im web config like execution timeout. But it does not help. And I am not sure about how can I search it? I think it is execution timeout but I see things lik...

WCF Response Message Takes 40 Minutes and No Timeout Exception is Thrown

I have a WCF service hosted in IIS7 (the service and client configuration is at the end of this post). I have run across an odd scenario that I was hoping someone might have some ideas about how to attack it and find a solution. The service only exposes one contract, 'ProcessMessage'. I can send/receive synchronous messages from the se...

PHP Timeout when connecting to nexus.passport.com

Hi all! I'm writing an MSN client in PHP. This is my code for so far: $socket = fsockopen("messenger.hotmail.com", 1863); echo '<b>Connected to 1st server.</b><br />'; //Send MSNP version fputs($socket, "VER 0 MSNP10 CVR0\r\n"); echo fread($socket, 5000) . '<br />'; //Send user-agent fputs($socket, "CVR 1 0x0409 php ".phpversion()." i3...