timeout

Mail Sending Program & Request Timeout

一曲冷凌霜 提交于 2019-12-23 05:31:56
问题 I was asked to develop an auto-mail sending program on asp.net. It is supposed to send, say 5000 e-mails reading the addresses from a database. It will sure fall into request timeout tough. So it seems I have to convert it into a windows app. But I'd like to know if ajaxifying this web-app would help. If I write a web service, and my web app sends the mail addresses as lists of 50 at a time. when done, send the next 50 and so on. Would this help to solve the problem of http request timeout?

Upload of Sonar report fails due to SocketTimeoutException

ⅰ亾dé卋堺 提交于 2019-12-23 04:54:28
问题 We have a problem similar to those already discussed in Sonar analysis fails with SocketTimeoutException and Read timed out on SonarQube analysis but it happens to us in version 5.6.2. We have a large number of sonar analyses as a series of nightly builds starting at midnight and ending in the early morning. Only the first analysis (sometimes the first couple of analyses) are affected by a SocketTimeoutException during the upload of the report: [exec] 00:15:33.724 DEBUG: Upload report [exec]

stop async task after 60 second

隐身守侯 提交于 2019-12-23 02:57:19
问题 i want to stop async task after 60 second i know there is a method get(time , timeunit) which i should be using in doInBackground but i dont know how to check if the time out has reached or not please provide that sample one line code . Thanks 回答1: If I understand your question correctly, you already know how to abandon the task after n seconds, but you need to know IF it was abandoned? According to AsyncTask docs it'll throw a TimeoutException. Do something like: try { //your AsyncTask code

MVC 3/EF/SQL Server strange connection timeout issue

此生再无相见时 提交于 2019-12-22 18:42:39
问题 Before reading please note that I've googled this and read a ton of articles on SO and elsewhere, no suggestions have worked as of yet. I'm randomly getting a timeout error that occurs when logging into my MVC 3 application. It happens well over half of the time - all other times the application logs on just fine. When it doesn't work, it tries for about 10 seconds then errors. The error: Exception: "An error occurred while executing the command definition. See the inner exception for details

Adjusting timeouts for Nokogiri connections

主宰稳场 提交于 2019-12-22 18:37:32
问题 Why nokogiri waits for couple of secongs (3-5) when the server is busy and I'm requesting pages one by one, but when these request are in a loop, nokogiri does not wait and throws the timeout message. I'm using timeout block wrapping the request, but nokogiri does not wait for that time at all. Any suggested procedure on this? # this is a method from the eng class def get_page(url,page_type) begin timeout(10) do # Get a Nokogiri::HTML::Document for the page we’re interested in... @@doc =

Adjusting timeouts for Nokogiri connections

醉酒当歌 提交于 2019-12-22 18:37:00
问题 Why nokogiri waits for couple of secongs (3-5) when the server is busy and I'm requesting pages one by one, but when these request are in a loop, nokogiri does not wait and throws the timeout message. I'm using timeout block wrapping the request, but nokogiri does not wait for that time at all. Any suggested procedure on this? # this is a method from the eng class def get_page(url,page_type) begin timeout(10) do # Get a Nokogiri::HTML::Document for the page we’re interested in... @@doc =

How to redirect visitor to another page after certain time in PHP? [closed]

丶灬走出姿态 提交于 2019-12-22 17:55:46
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 8 years ago . What are some hidden tricks of PHP in putting timeout on the page and redirect it to another page? 回答1: You can use sleep on the server-side then redirect to another page with header. Or you can send an HTML page

Exit Node.js process after event loop is empty OR after timeout

梦想与她 提交于 2019-12-22 17:42:21
问题 I have a Node app doing some asynchronous things, and I can't take the chance that one of the many modules does something bad and gets stuck, so the app will never exit. (It just happened when sending log messages to a service.) I can't use process.exit directly, because it will terminate no matter how many asynchronous operations are pending. Still I'd like to exit as early as possible, so this won't do: function exit() { setTimeout(function() { process.exit(1); }, 10000); } Because that

wso2 esb how to increase endpoint timeout

别说谁变了你拦得住时间么 提交于 2019-12-22 14:02:07
问题 I have JMS queue message processor sequence where request is send to SOAP endpoint. However request to this endpoint can take a long time, up to 30 minutes or so. How can I can configure ESB to allow long timeout values ? Currently I'm getting following error after 60 seconds: [2014-01-20 14:18:31,772] WARN - TargetHandler http-outgoing-4: Connection time out while in state: REQUEST_DONE [2014-01-20 14:18:31,775] WARN - SynapseCallbackReceiver Synapse received a response for the request with

Google Guava Cache - Change the eviction timeout values during run time

浪尽此生 提交于 2019-12-22 13:56:10
问题 I am using the following: LoadingCache<String, Long> inQueueLoadingCache = CacheBuilder.newBuilder() .expireAfterWrite(120, TimeUnit.SECONDS) .removalListener(inQueueRemovalListener) .build(inQueueCacheLoader); After every 120 seconds, the cache entries are evicted and it works as expected. My question is: How do I change the timeout value, say from 120 to 60 seconds, for the current cache? What will happen to the cache entries during this change? 回答1: Short answer: you can't change eviction