This question already has an answer here: How do JavaScript closures work? 88 answers I have this function: //We will store any failed subscriptions and retry them until the succeed (if ever) addFailedSubscription: function(streamId) { failedSubscrip
I'm not sure if I'm doing something wrong, haven't really used do while in JS but I would like to check every 5 seconds if row exists in a db with ajax call while a condition is not met. This is my call: var checkForDoc = false; var i = 0; do { $time
Wakanda 1.0.3 OS X. Question: I have a long running process on the server side, which is called on the server side. It could run as long as 4-5 minutes. What are the limits for Wakanda Server in terms of how long a SSJS will wait before it times out
I have to send mail using my web application. Given below code showing The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.57 SMTP; Client was not authenticated to send anonymous mail during
Is the chunk lost with this code if the time is out (2 seconds), or does get retry to download the missed chunk? use LWP::UserAgent; my $url = '...'; my $file_name = '...'; my $ua = LWP::UserAgent->new(); open my $fh, '>>:raw', $file_name or die
I have a CFM Page where I call a Stored Procedure. The page seems to be timing out due to the query taking too long to execute. We have tried optimizing/tuning the SQL query, made Clustered and Non-Clustered Indices , but the query is still taking ar
I want to update a variable on a given time interval with a function. Here's my code: var heroVel1 = game.currentHero.GetLinearVelocity().x; var heroVel2 = ''; setInterval(function() { var heroVel2 = heroVel1; }, 2000); console.log(heroVel2); I've tr
I'm sending a command by SSH. This particular command happens to tell the machine to reboot. Unfortunately this hangs my SSH session and does not return so that my script is unable to continue forwards onto other tasks. I've tried various combination
We are using the C# driver (1.9.1) for Mongo DB. We have some fallback logic which needs to run if the DB is not accessible, however the default timeout is too long. We tried to change it but the values we put are getting ignored. For the tests we we
This has probably been asked but I cannot find anything regarding a subprocess.call timeout when using python 2.7A simple way I've always done timeouts with 2.7 is utilizing subprocess.poll() alongside time.sleep() with a delay. Here's a very basic e
My EJB Application lately started frequently throwing com.ibm.websphere.ce.j2c.ConnectionWaitTimeoutException at com.ibm.ejs.j2c.FreePool.createOrWaitForConnection(FreePool.java:1521) Error Message states for example "Connection not available, Timed
I have written a Webdriver test that when ran, sometimes completes and sometimes doesn't. I can't see why, my guess is that the way I verify that the page has loaded is not robust. I verify that the website is in the correct place by waiting for a el
I have made a PHP script which probably would take about 3 hours to complete. I run it from browser and after about 45minutes it stops doing anything. I know this since its polling certain web addresses and then saves some data to database. So it bas
I have this situation: my menu li have some hidden elements, after i hover it this elements is showing. Eveything is fine, i have some timeouts etc. but when i leave hovered element my submenu hides to. I'v set this timeouts becouse i don't want to t
My MVC application is running under Windows Authentication. I have used TempData at various places in my application. The problem is that, they get clear with session timeout. however, the Windows login is still running. How can I set them to remain
In my Windows application I try to connect to SQL Server 2008 with following code: SqlConnection connection = new SqlConnection(Properties.Settings.Default.KargarBandarConnectionString); SqlCommand command = new SqlCommand("Select IsAdmin from Users
Possible Duplicate: Timeout when connection is gone. HELP ME PLEASE I'd like to put in my code a time-out. When the file is being downloaded and i stay without internet, it count to 60 secs and if the connection don't back, gives a message. Here is t
I would like a javascript to run after a page is loaded , like on the example below with a delay of 6seconds. Right after the page loads the rest of JS is lost (obvious)... Got any ideea how change content after page is loaded without clicking a butt
I am working on lcds application and am using secure-amf channel for remote object calls. Calling Websphere server(Java EE application). I want to know the timeouts associated with the channels or timeouts in application. Is there any documentation f
Calling a WCF Service in my application throws EndpointNotFoundException after one minute. All timeouts are more than one minute. var binding = new BasicHttpBinding { OpenTimeout = TimeSpan.FromMinutes(3), CloseTimeout = TimeSpan.FromMinutes(6), Rece
On Mysql (Amazon RDS), when I try to run the following SQL query UPDATE table1 INNER JOIN table2 USING (CommonColumn) SET table1.col1 = table2.x, table1.col2 = table2.y I get this error after around 52 seconds consistently: Error Code: 1205. Lock wai
I am trying to run remote jboss in debug mode to debug my application and i have set set JAVA_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=y %JAVA_OPTS% in run.bat file, and am trying to start the jboss server using ant jb
I have a php page that uses php sessions as well as jquery to call pages via ajax. The problem is if the page is idle for so long the page being called via ajax gets redirected to the home page but the rest of the page outside the div being updated w
I want to kill a process running on the machine using taskkill if they're still running after X seconds (a windows service was stopped but it takes time for processes to dissapear) What's the most correct way to accomplish the above in C# (.net 2.0 o
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=neutra
I'm running a curl request on an eXist database through php. The dataset is very large, and as a result, the database consistently takes a long amount of time to return an XML response. To fix that, we set up a curl request, with what is supposed to
I have a small jquery snippet that displays notification message at the top of the screen in response to user actions on a page. The notification is often displayed after Ajax actions with dynamic content inside it. For example: $("#mini-txt").h
I'm building a Distributed System using Java RMI and it must support a server loss. If my client is connected to a Server using RMI, if this server goes down (cable problems for example), my client should get an exception so it can connect to other s
Analysing log files I've noticed that ~1% of service calls ended with TimeoutException on the Silverlight client side. The services (wcf) are quite simple and do not perform long computations. According the log all calls to the services are always pr
I'm getting this error from time to time and don't know what causing this: When trying to run/debug an Android app on a real device (Galaxy Samsung S in my case) I'm getting the following error in the Console: Failed to install *.apk on device *: tim