timeout

Setting time out in iframe inside Ext.Window

大兔子大兔子 提交于 2019-12-24 08:55:47
问题 I have an iframe inside ExtJS Ext.Window component. In the iframe , I make an ajax call to the php layer, which returns a pdf object and that gets rendered in the iframe . I need to set timeout in the js layer, say if the processing takes more than 1 second, I should abort the process. I saw about the various methods that iframe provides, but there is nothing relating to timeout. ontimeout is the closest function, but I am not clear where to set the timeout. var win = new Ext.Window({ id:

jQuery cycle plugin with different timeout values for each slide

走远了吗. 提交于 2019-12-24 08:28:24
问题 I'm trying to use the jQuery cycle plugin to cycle round different quotes. I would like to have the quotes displayed for different amount of time depending on the length of the quote. To achieve this I get the content mangagement system to output the amount of seconds as a class name such as dur13 would be for 13 seconds. This is my non-working attempt: $('.featureFade').cycle({cycleTimeout: 10, after: onCycleAfter}); function onCycleAfter() { $('.featureFade').cycle('pause'); var duration =

Protractor Locator Time Out exception for AngularJs application

自古美人都是妖i 提交于 2019-12-24 08:24:38
问题 We are trying to automate a publicly accessible website and click on one of the links, but the test fails with TimeOut Exception while locating the element as below: From: Task: Protractor.waitForAngular() - Locator: By(link text, MY ACCOUNT) Sample conf and spec file below. Requesting help on how to solve this issue. conf.js exports.config = { seleniumAddress: 'http://localhost:4444/wd/hub', capabilities: { 'browserName': 'chrome' }, specs: ['test.js'] }; test.js describe('test', function()

System.Net.WebException: Unable to read data from the transport connection: The connection was closed.

亡梦爱人 提交于 2019-12-24 08:22:13
问题 Sometimes the following error occurs by downloading a (large) file: System.Net.WebException: An exception occurred during a WebClient request. ---> System.IO.IOException: Unable to read data from the transport connection: The connection was closed. at System.Net.ConnectStream.EndRead(IAsyncResult asyncResult) at System.Net.WebClient.DownloadBitsReadCallbackState(DownloadBitsState state, IAsyncResult result) --- End of inner exception stack trace --- For me that sounds like the server times

Getting a 504 only when Fiddler is present?

杀马特。学长 韩版系。学妹 提交于 2019-12-24 07:44:37
问题 A GET request is constructed to test the network and it is configurable to purposely wait for 15 minutes within the IIS process before responding. When the request is issued in Chrome without Fiddler it completes successfully. However, with Fiddler it is usually either 5 or 10 minutes. When replayed from Fiddler it is 5 minutes (only a few trials so not conclusive). Within the 10 minute cases, inside the Fiddler Statistics tab is Request was retried after a Receive operation failed This

How do the different browsers handle timeout with synchronous XHR

拈花ヽ惹草 提交于 2019-12-24 07:35:16
问题 On Wednesday the AJAXy CRM system I maintain broke for many users, because Firefox started reporting "Use of XMLHttpRequest's timeout attribute is not supported in the synchronous mode in window context" . The other major browsers still work fine so as a workaround I have advised people not to use Firefox. From what I understand synchronous requests are A Bad Thing, so I can only assume some recent update to Firefox has stopped it from accommodating Bad Things. All previous discussions (here

Synchronization problems with Monitor class in WCF service

僤鯓⒐⒋嵵緔 提交于 2019-12-24 05:39:22
问题 I have a self-hosted WCF service and I'm having the following problem: 15 minutes after creating the instance of the service TryEnter calls in operation contract methods constantly return false, but the TryEnter calls in Main function, which also uses synchronization via Monitor class, return true. Here's the description of my app and the bug: I am developing a self-hosted WCF service in Visual Studio 2008 (C#) in Windows XP SP2. The ServiceHost instance of the host is created at the

Is it possible to install timeout in OpenWRT

纵饮孤独 提交于 2019-12-24 04:18:10
问题 I need to execute a command with a timeout in OpenWRT, but it seems that the command timeout is not installed by default neither can be installed using opkg. I know that I can do a work around (using command &; sleep $DELAY; kill $!), but I wish to do this more properly without getting the risk of kill trying to kill a process in case the command finished before the timeout. 回答1: Yes you can install timeout on openWRT $ opkg update $ opkg install coreutils-timeout $ timeout 2 sleep 10 This

Machine-Specific HttpWebResponse Timeout

允我心安 提交于 2019-12-24 03:40:12
问题 I have a very odd machine-specific issue. On some machines, the code below works, on others it freezes until a timeout exception is thrown on by GetResponse() call. string url = "https://myserver/myimage.png"; System.Net.ServicePointManager.ServerCertificateValidationCallback = ((sender, certificate, chain, sslPolicyErrors) => { return true; }); HttpWebRequest req = (HttpWebRequest)HttpWebRequest.Create(url); req.Method = "GET"; req.AllowAutoRedirect = false; try { using (HttpWebResponse resp

nginx 502 error and 504 error

别说谁变了你拦得住时间么 提交于 2019-12-24 03:12:56
问题 My server is node.js and I use nginx as a reverse proxy. Now I have to do a time-consuming https request, but I always get the 504 Gateway Time-out error. and nginx/error.log says: "upstream timed out" So I change nginx conf to: proxy_read_timeout 600; proxy_connect_timeout 600; client_max_body_size 32M; client_body_buffer_size 512k; proxy_send_timeout 600; proxy_buffers 32 4k; This time there will be no 504 error, but it turn to be 502 error, and nginx/error says: "upstream prematurely