timeout

Closing a listening TCP socket in C

Hi; Suppose you have a socket listening on a TCP port, and some clients are connected. When one issues sock_close(fd) in C and tries to bind again on the same port, binding fails. Some TIME_WAIT state is seen on the "netstat -plutnoa" such as: tcp 0 0 127.0.0.1:4567 127.0.0.1:32977 TIME_WAIT - ...

How can i handle a timeout in this Google-Maps-Request ?

In the following Code i think i have a problem with timeouts, if the connection is slow. The application works with 3G and without net, but on GPRS it quits sometimes without a message in the log. I think, it maybe in this part of code. So, is there a way to handle those timeouts ? Or have i done some stupid mistake, i havent figured ou...

cancel a SynchronousRequest in iPhone SDK. (TIMEOUT Interval not wokring)

Hello, I've queried this forum for hours looking for an idea/answer/solution for my problem, but came up empty every time. i have created a SynchronousRequest using the following: NSMutableURLRequest *theRequest = [[NSMutableURLRequest alloc] initWithURL:url]; NSString *msgLength = [NSString stringWithFormat:@"%d", [params len...

JPA (and/or Hibernate) - How to set timeout threshold for connection and/or query?

I'm trying to figure out how to configure my project such that JPA will timeout and throw an exception after a configured amount of time. There are two situations where I would like this to happen: When JPA is unable to even connect to the database When a JPA query takes longer than the timeout threshold to return a result set I'm no...

pySerial getting writeTimeout exeption when sending data

Hi, I'm getting a writeTimeout on a serial connection using pyserial. I have googled a lot and so far i have found nothing. I thought some other might have had the same problem and solved it. However here is my example code ser = serial.Serial('COM10', baudrate=115200, timeout=2, ...

How to set a timeout for finding location with geo.js?

I use geo.js in my webapp to let user share their location. In most browsers it works fine, however in Safari it usually hangs up. I know there's timeout in HTML5 geolocation, is there such thing in geo.js too? Thanks! ...

VB.NET Abort an asynchronous method call after timeout

VB.NET 2010, .NET 4 Hello all, I have a System.Timers.Timer object that does some work on its elapsed event: Private Sub MasterTimer_Elapsed(ByVal sender As Object, ByVal e As System.Timers.ElapsedEventArgs) Handles MasterTimer.Elapsed MasterTimer.Enabled = False '...work... MasterTimer.Enabled = True End Sub My problem ...

Help with deciphering WCF timeout errors

I have a windows service that is very heavily multithreaded (hundreds to thousands at the same time). Those threads scan different machines and call WCF web services of one Web Server. Lately I started getting Timeout errors. The thing that confuses me is The request channel timed out while waiting for a reply after 00:02:41.880...

Timeout updating blob field using Entity Framework 4

I'm using EF4 to update a table with blob field. My code snippet is below: public void SavePolicyDocument(int policyID, int batchID, byte[] file) { PolicyDocument policyDocument = GetPolicyDocument(policyID, batchID); policyDocument.DocumentImage = file; myEntities.PolicyDocuments.ApplyCurrentValues(policyDoc...

Burstable Output for Long running scripts

script <?php include('time.php'); //time script echo "First 100 users of SO<br/>"; for($i=0; $i<100;$i++){ $contents=file_get_contents("http://stackoverflow.com/privileges/user/".$i); preg_match('!<div class="summarycount al">(.+?)</div>!', $contents, $matches); $rep = $matches[1]; echo "<br/>".$i.") ".$rep."<br/>"; include('timetaken....

Basicdatasource connection time out problem (using mysql)

I am using BasicDatasource in my application. This application is processing huge amount of raw data. Sometimes 1 query can take more than 15 minutes. (using mysql as db) Here is my question, I acquire a connection from pool, then execute several queries on it. But when I use the same connection more than 15 minutes, I get the error bel...

SQL server Timeout – only happens very occasionally

Hello, I have a web application that occasionally will throw this error…. Exception message: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. When I does I am unable to connect to SQL server, even through management studio, it’s says the server timed out and c...

How to increase timeout for Solr

I am updating my index using Solr. I understand that to increase the timeout duration of the transaction in Jetty. But I can't seem to find the settings file i.e. XML config file. Where is it located? I am using Solr 1.4.1 Thanks ...

SQL Server timeout caused by w3wp.exe crashing

Hello, I have a ongoing issue with my website, where it appears the W3wp.exe crashes and in turn anyone attempting to connect to the site will receive a SQL server timeout error. The error is this... System.Data.SqlClient.SqlException: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is no...

Prevent timeout during large request in PHP

Hi all, I'm making a large request to the brightcove servers to make a batch change of metadata in my videos. It seems like it only made it through 1000 iterations and then stopped - can anyone help in adjusting this code to prevent a timeout from happening? It needs to make about 7000/8000 iterations. <?php include 'echove.php'; $e =...

timeout and session timeout issue

I have a problem with timeout. firstly the timeout happens every 20 minutes on server even if the time in webconfig is set to 120 mins. second, when the timeout happens it goes to the login page, which is correct but on logging back in it sometimes goes to the default page and sometimes to the page it was previously on. I want it to go...

Webservice timeout java web service

Hi Guys, I have a webservice stub. I am setting the timeout for the stub like this. stub.getServiceClient().getOptions().setTimeOutInMilliSeconds(timeout * 1 * 1000); But this doesnt work (i.e. the connection is alive even after the timeout period). Can you please tell me why is it so? Thanks in advance. :) ...

Avoiding CGI timeout

I have a function, that gets a large XML file, then parses it, and then uses the details, to get some more xml files, that are again parsed ( A webshop). The problem is, that the processing takes about 15-20mins, but the script timeout's before that, and sends me a 500 error message. Is there a way around this? I read on a post here...

Updating a loading/saving message in JavaScript that clears after all callbacks are complete

I'm building an AJAX app that constantly saves to the server when the user changes things. Every time the user changes something, I want a status area to say "Saving..." (with animated ellipses) and then change back to "Saved" at the callback (when the server returns) In theory this is easy enough, because I could change the status area...

Setting a timeout for ServerXMLHTTP request

Does anyone know how to set up set up a default action for when a ServerXMLHTTP request times out? I'm using setTimeouts() to set the time out options according to the MSDN site. Ideally I would like to initialize the request again from the beginning or refresh the page should it time out. I'm using classic asp and jscript. Here's my...