timeout

Open social viewer state (isOwner)

We are creating a gadget for the opensocial API 0.7. In some functions we have to decide, if the viewer is the owner. We couldn't use the usual function for this purpose: return gadgets.util.getUrlParameters().viewer == gadgets.util.getUrlParameters().owner; so we had to create a workaround and get the information via a DataRequest. Th...

How to set Timeout for a mysql query in Java ?

I want to set some timeout for a mysql query to execute in java. ...

Why timeout may occur in SqlConnection.Open()?

What are the cases when timeout occurs in SqlConnection.Open()? On one of our IIS boxes 10 seconds after AppProcess was recycled the following exception appeared: Type : System.Data.SqlClient.SqlException, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 Message : Timeout expired. The timeout period e...

Javascript: find the time left in a setTimeout()?

I'm writing some Javascript that interacts with library code that I don't own, and can't (reasonably) change. It creates Javascript timeouts used for showing the next question in a series of time-limited questions. This isn't real code because it is obfuscated beyond all hope. Here's what the library is doing: .... // setup a timeout...

wcf service OpenTimeout error

i am making a WCF service, and its corresponding client, both hosted in a single ASP.NET application. Now what happens, is that whenever i open my connection, it gives a timeout error. It happens, only of the .Open() statement. And moreover, it doesn't happen always, but sometimes it keeps coming.?? Please tell me a way.. ...

JQuery + Dialog Open + Timeout

I have a dialog window in my JSP page and its implemented using jQuery. If my server is timed-out and I click on a button to open the dialog window, my login-page is shown inside the dialog window. I want to actually close the dialog window and redirect to login page. How can I achieve this? ...

Browser timing out Javascript recursive function, how to solve ?

Hi, I had to develop a newsletter manager with JS + PHP + MYSQL and I would like to know a few things on browser timing out the JS functions. If I'm running a recursive function that delays a call to itself (while PHP returns a list of email), how can I be sure that the browser wont timeout this JS function ? I'm asking this, because ...

How to implement timeout for socket?

Hi, I've been working on a application for iPad that use sockets to communicate with another application and I'm having a lot of problems figuring out how to implement a timeout when sending data to my server application. I have like 3 command that I send to the server depending on what type of information I need, one of this commands ...

Java URLConnection Timeout

Hi all, I am trying to parse an XML file from an HTTP URL. I want to configure a timeout of 15 seconds if the XML fetch takes longer than that, I want to report a timeout. For some reason, the setConnectTimeout and setReadTimeout do not work. Here's the code: URL url = new URL("http://www.myurl.com/sample.xml"); URL...

DebugDiag configuration for catching specific HttpException.

Hi, Does anyone have any experience with setting up DebugDiag to trigger on a specific HttpException? The advanced configuration only allows you to specify the .NET type of the exception, while HttpExceptions are very generic and are used for anything from 404's to timeouts. I'm interested in triggering a dump on page timeout in this ca...

Set delay with javascript / ajax

I want to make a delay when the result comes in the note. I have a form > input the user types his username in the input and I check with AJAX if the username is available or not. If yes a note shows up near the input with the result. Please no jQuery! ...

race condition in Selenium waitForPageToLoad?

We're using Selenium for smoke-testing a Java Spring MVC based website. We invoke it using JUnit and the Java Selenium client. Much of the time, our tests work fine, but we tend to get timeouts in selenium.waitForPageToLoad in apparently random places. (That is, run the test suite multiple times and the location and number of timeouts...

Setting timeout on jQuery's get shorthand

Is it possible to set the ajax timeout parameter using jQuery's get shorthand? If not, do requests sent with the shorthand ever timeout? jQuery.get( url, [ data ], [ callback(data, textStatus, XMLHttpRequest) ], [ dataType ] ) thanks ...

dot net timeout problem

Dear All, I have the following problem. My web application (asp.net, C#) works nicely on a server. When I access it remotely, though, it gradually slows down and eventually experiences time-out. The problems is completely absent when access is not remote. What could it be? Where can I start to look for errors or bad settings? Thanks!...

HttpWebRequest.GetResponse: "The underlying connection was closed: An unexpected error occurred on a receive."

I've written a C# Windows service (.NET Framework 3.5, C# 3.0) that posts files & HTML form information to a remote server, and then stores the XML server response in a database. Here is the main chunk of pertinent code: HttpWebRequest request = WebRequest.Create(postUrl) as HttpWebRequest; request.ProtocolVersion = HttpVersio...

Setting Timeouts?

I have a process that can get stuck in an infinite loop and I want to add a 5 second timeout so it doesn't hang forever. bool FlagSuccess = false; while (FlagSuccess == false) { try { //Blah blah blah FlagSuccess=true; } catch { } } ...

Send timeouts on WAS-hosted WCF service with named pipe binding, per-call instancing

We have a client that sends requests to a per-call WCF service (WAS hosted, NP binding, same machine) in a loop. The WCF service calls an external EXE to process requests. The operations on the service can take a few seconds, or a few hours. To combat this, we have sendTimeout=00:01:00, receiveTimeout=00:05:00 and a built-in circuit-b...

Jquery uploadify http error #408

Hi every one, ive been struggling with uploadify. on some pages it outputs 408 error message. The oncomplete is never called and checking the modsec_log i get this modsec_debug.log:[09/Jul/2010:01:02:04 --0500] [www.veepiz.com/sid#118091f0][rid#1202cbe8][/pupload.php][1] Exec: Execution failed while reading output: /usr/bin/modsec-clams...

Timeout in CUDA? / fermi / gtx465

I am using CUDA SDK 3.1 on MS VS2005 with GPU GTX465 1 GB. I have such a kernel function: __global__ void CRT_GPU_2(float *A, float *X, float *Y, float *Z, float *pIntensity, float *firstTime, float *pointsNumber) { int holo_x = blockIdx.x*20 + threadIdx.x; int holo_y = blockIdx.y*20 + threadIdx.y; float k=2.0f*3.14f/0.00000005...

Implementing timeouts on top of AsynchronousByteChannel?

How can one implement read(ByteBuffer dst, long timeout, TimeUnit unit, A attachment, CompletionHandler<Integer,? super A> handler) on top of an existing AsynchronousByteChannel? That is, how can one implement read-with-timeout functionality on top of AsynchronousByteChannel that does not support timeouts? Unlike AsynchronousSocketChan...