timeout

Help catching session timeout in spring

本小妞迷上赌 提交于 2019-12-21 20:59:41
问题 I have a simple Spring 3 MVC application. I am using a sessionAttribute and everything works fine except when I let the page sit for 30 minutes or longer. I then get a org.springframework.web.HttpSessionRequiredException telling me my object is not found in session. I am thinking I need to somehow redirect back to the same page when a session timeout occurs. I am not sure how to do this correctly with spring. There is no login required and I am already checking if the object is null. Any

How JTA/JTS handle transaction time out issue?

[亡魂溺海] 提交于 2019-12-21 20:49:07
问题 Below is my understand that JTA/ JTS handle transaction time out issue. But I cannot find my document or material to back my understand. Is my understand right? Do u know any material is refer to this issue? Application Server iterates through all the transactions to check timeout. If a transaction timeout occurs, application server marks roll back for the transaction, and log down the detail. But Application Server neither throws exception nor interrupts the transaction this moment. When the

Named Pipes server, how to interrupt or timeout the wait for client connection and for incoming data

房东的猫 提交于 2019-12-21 17:46:01
问题 I am writing a simple Named Pipes server for Windows, calling the Windows API (in Java with JNA but this is not relevant). I am trying to figure out how to avoid that the server stays stuck forever waiting for a client to connect or for data to come from the client. The server code does the following: 1) It creates the pipe by calling CreateNamedPipe, with PIPE_WAIT in the dwPipeMode argument. 2) It calls ConnectNamedPipe which doesn't return until a client has connected. 3) It enters a loop

Apache 500 Error with PHP Fun

孤街浪徒 提交于 2019-12-21 17:23:14
问题 So I am running a PHP script on my godaddy (don't hate me) virtual server which I am expecting to take around 5 minutes to finish executing. The script is CURLing pages but never holds more than 1 page at a time (it is done in a loop reusing the same variable). I modified my php5.ini file to the following: max_execution_time = 600 max_input_time = 120 memory_limit = 64M I verified through phpinfo that the ini file changes had taken effect, however I am getting an Apache 500 error after 120

What determines how long does an out of process COM server takes to notice that a client has died?

本秂侑毒 提交于 2019-12-21 17:21:56
问题 In a simple windows setup we have a COM singleton that runs as an out of process server. Clients connect by calling cocreate and each receives an interface to the same instance of the server. If clients shutdown normally they release their references. The server has a bit of logic that keeps it alive for a short time after the last release to allow for new connections. I'm interested in one special case - the server is running with only one client which crashes (consider this to be any random

Grails connection timeout during large fileupload

旧城冷巷雨未停 提交于 2019-12-21 17:14:50
问题 I want to prevent the SocketTimeoutException that occurs after about 1 minute if a user tries to upload a large file from an upload form in my Grails web application. I know this is a Tomcat thing rather than a Grails thing, but I'm struggling a bit to modify server.xml using the eventConfigureTomcat event block in _Events.groovy . According to the tomcat docs there is a disableUploadTimeout property that I should set to true on the connector, but when I try this in the eventConfigureTomcat

jQuery remove bootstrap alert after certain amount of time

微笑、不失礼 提交于 2019-12-21 12:40:23
问题 I am using dynamic bootstrap alerts from an example. See below. How can I add a timeout function so alert closes automatically after X time ? HTML: <div id="alert_placeholder"></div> JQUERY: bootstrap_alert = function() { } bootstrap_alert.warning = function(message) { $('#alert_placeholder').append('<div class="alert alert-block fade in"><button type="button" class="close" data-dismiss="alert">×</button><h4>Info!</h4>'+ message +'</div>'); } bootstrap_alert.info = function(message) { $('

Restkit .20 request timeout interval

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-21 12:25:27
问题 Trying to set a request Timeout Interval on Restkit. This post mentions HTTClient, but HTTPClient does NOT seem to have a way to set a timeout interval. Request timeout in restkit 0.20.0 Does anyone know how to set an interval? 回答1: There isn't direct access to it. You should really ask why you want to set a custom timeout. If you do need to change it, you should subclass RKObjectManager and override requestWithObject: . Your implementation can just call super and then edit the resulting

Timeout in DefaultHttpClient

我怕爱的太早我们不能终老 提交于 2019-12-21 12:15:39
问题 I'm a little confused on how the timeouts in DefaultHttpClient work. I'm using this code: private DefaultHttpClient createHttpClient() { HttpParams my_httpParams = new BasicHttpParams(); HttpConnectionParams.setConnectionTimeout(my_httpParams, 3000); HttpConnectionParams.setSoTimeout(my_httpParams, 15000); SchemeRegistry registry = new SchemeRegistry(); registry.register(new Scheme("http", PlainSocketFactory.getSocketFactory(), 80)); ThreadSafeClientConnManager multiThreadedConnectionManager

jQuery.ajax() - How to handle timeouts best?

不羁的心 提交于 2019-12-21 10:18:38
问题 I'm wondering, what's the best way to handle timeouts with jQuery.ajax() . That's my solution at the moment: If an timeout occurs the page will be reloaded and the script gets another chance to load the data within it's given timeframe. Problem : if "get_json.php" (example below) is really not available, it will become an endless reloading-loop. Possible solution: adding a counter and cancel after $x reloads. Question 1 : How to handle the timeout error best? Question 2 : What's your