timeout

how to decrease ssh connection timeout value [closed]

微笑、不失礼 提交于 2020-01-02 01:56:16
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I have a list of full remote host ip addresses. I wrote a script to connect all the hosts in this list, one by one. My question is, sometimes when an IP address is down, script waits for a while (maybe a couple of minute) to go and execute next host. So I would like to decrease this waiting time. For example

PHPUnit strict mode - how to change default timeout

时光总嘲笑我的痴心妄想 提交于 2020-01-02 01:47:08
问题 I'd like to keep running my unit tests in strict mode so that I'm aware of any exceptionally long tests easily, but at the same time the default timeout of 1s is not enough. Can I change it for all tests? I know I can set timeout for each class (and individual tests) using @short / @medium / @long annotations, but is there something like that for all tests? Perhaps in phpunit.xml? This is to avoid PHP_Invoker_TimeoutException: Execution aborted after 1 second that happens once in a while. 回答1

Detecting forms authentication timeout in login page

二次信任 提交于 2020-01-01 18:54:26
问题 When you have forms authentication setup to redirect to login.aspx when accessing a protected page, what's a good way to detect in login.aspx whether the user was sent there because they haven't logged on yet, or because their forms auth ticket is expired? I'd like to display a "you've timed out" message. (I do not mention the word session in this question, because ASP.NET treats them so distinctly, however, if there is a good solution that involves session, I'm all ears) I've solved this in

Celery: stuck in infinitly repeating timeouts (Timed out waiting for UP message)

≡放荡痞女 提交于 2020-01-01 16:09:12
问题 I defined some tasks with a time limit of 1200: @celery.task(time_limit=1200) def create_ne_list(text): c = Client() return c.create_ne_list(text) I'm also using the worker_process_init signal to do some initialization, each time a new process starts: @worker_process_init.connect def init(sender=None, conf=None, **kwargs): init_system(celery.conf) init_pdf(celery.conf) This initialization function takes several seconds to execute. Besides that, I'm using the following configuration: CELERY

HttpClient hangs on socketRead0 with successfully executed method

帅比萌擦擦* 提交于 2020-01-01 05:12:48
问题 In our web-application A user can submit a url. We will fetch the data and parse it server side. For each request we use an HttpClient with the following (relevant) settings connectionManager.getParams().setConnectionTimeout(10000); connectionManager.getParams().setSoTimeout(10000); When I call HttpMethod.getResponseBody the status code has already been checked to be acceptable. At this point the thread hangs with this stack trace: java.net.SocketInputStream.socketRead0 ( native code ) java

Setting time out in apache http client

…衆ロ難τιáo~ 提交于 2020-01-01 03:59:07
问题 I'm using Apache http client 4.3.2 to send get requests. What I have done is: private final RequestConfig requestConfig = RequestConfig.custom() .setConnectTimeout(1000) .setConnectionRequestTimeout(1000) .setSocketTimeout(1000) .build(); private final HttpClient client = HttpClientBuilder.create() .disableAuthCaching() .disableAutomaticRetries() .disableConnectionState() .disableContentCompression() .disableCookieManagement() .disableRedirectHandling() .setDefaultRequestConfig(requestConfig)

Bypassing CloudFlare's time-out of 100 seconds

三世轮回 提交于 2020-01-01 03:39:34
问题 I am attempting to AJAX-ify my reports in order to bypass the 100 seconds time-out that CloudFlare imposes on requests that run through its site. See Is it possible to increase CloudFlare time-out? I did the following: function ajaxReport() { var seconds = prompt("Please enter how many seconds you want the report to run", "5"); $('#imgWaiting').show(); $.post("post/post_ajaxReport.jsp", { theParam:seconds },function(data) { $('#imgWaiting').hide(); window.location=data; }); } and the

spring security session timeout

Deadly 提交于 2020-01-01 03:26:10
问题 I use Spring Security 3 in my JSF2 webapp. I have a security rule to provide session timeouts: <session-management invalid-session-url="/faces/paginas/autenticacion/login.xhtml?error=1" /> So that when the session has expired and the user clicks on any link, he is redirected to the login page. In this page I check for the error param, and show a message to the user saying the session has expired. But I have 2 problems: (1) When I startup the app the first time (it tries to show the home page)

urllib2.urlopen will hang forever despite of timeout

此生再无相见时 提交于 2020-01-01 03:24:07
问题 Hope this is quite a simple question, but it's driving me crazy. I'm using Python 2.7.3 on an out of the box installation of ubuntu 12.10 server. I kept zooming on the problem until I got to this snippet: import urllib2 x=urllib2.urlopen("http://casacinema.eu/movie-film-Matrix+trilogy+123+streaming-6165.html", timeout=5) It simply hangs forever, never goes on timeout. I'm evidently doing something wrong. Anybody could please help? Thank you very much indeed! Matteo 回答1: Looks like you are

BroadcastReceiver onReceive timeout

六眼飞鱼酱① 提交于 2020-01-01 02:50:07
问题 I extend BroadcastReceiver , and in onReceive() I do whatever I need to do. onReceive() has a timeout, from the documentation: there is a timeout of 10 seconds that the system allows before considering the receiver to be blocked and a candidate to be killed This creates a problem when I am in debug mode. I need more than 10 seconds (sometimes). If I don't do all my debugging in 10 seconds my connection is closed and debugging is stopped. Can I increase the timeout or disable it for debugging