timeout

A 5sec SP hitting a 30sec timeout through LINQ-to-SQL

喜夏-厌秋 提交于 2019-12-24 03:09:38
问题 I have a SP that executes in 5 seconds through SSMS When that same SP is executed through a LINQ-to-SQL excel add-in it times out after 30 seconds (simpler queries for that same SP take a long time but return results) I then changed the SP so that it reassigns all the input parameters to new local parameters inside the SP. That made the SP run in 36seconds in SSMS (so there is the reason why SSMS was so fast to begin with) So I'm guessing that SQL server isn't making use of parameter sniffing

Ruby + Windows + Timeouts + SerialPorts won't work

十年热恋 提交于 2019-12-24 03:07:50
问题 I am developing a multiplatform Ruby program that is supposed to connect via USB to a serial device. First I was using the serialport gem (1.0.4), but then I ran into some strange problems and had to drop it. I then proceeded to communicate via Ruby's IO class, as follows: @port = IO.new IO.sysopen(path, mode), mode Communication via syswrite and sysread is perfect both in Linux as Windows. With the communication done, I tried setting up timeouts so that the program won't hang if any desync

Timeout a command efficiently and capture output to a variable in bash script

六月ゝ 毕业季﹏ 提交于 2019-12-24 01:15:01
问题 I need to run a command and kill it when running too long, in a bash script. I also need to capture all output to a variable. If the command finishes first, I need to release/kill the watchdog process (e.g. sleep) because I may run a list of such commands. Unfortunately the "timeout" command is not available to me, othervise I could do something like this: output=`timeout -s 9 $TIMEOUT my-command` and check for the exit code 124 to see if there was a timeout. Therefore my solution of choice

Overwriting Transaction Timeout set by WebSphere?

╄→гoц情女王★ 提交于 2019-12-24 00:34:34
问题 I am currently in a project where we have a method that is called to generate a report and then return it to the client side. The whole process works something like this: [[Application]] --> [[JMS]] --> [[DB Server]] However, our WebSphere has a global setting where Transaction Timeout is set to 2 minutes, and Maximum Transaction Timeout is set to 5 minutes. This has caused us some problems because some of our reports take longer than 2 minutes, and as such, the connection is dropped at the

PHP set_time_limit no effect

♀尐吖头ヾ 提交于 2019-12-23 22:23:55
问题 I have a very painful slow script that gets lots of data from MySQL and creates a large report out of it that it serves to the user at the end as application/force-download. Long story short, on production server it keeps terminating after about 30 seconds (quite consistently) and spitting out an empty file instead. On development server it works fine, but it does take significantly longer to execute - about 90 seconds. Just to be 'safe', I set my php.ini file to max_execution_time = 2000 and

elasticsearch create TransportConnection timeout

喜欢而已 提交于 2019-12-23 21:40:24
问题 I am creating a Elasticsearch Connection with Java API. I am using TransportConnection and I need to set the timeout for the connection. I haven't configured any property and the connect takes three minutes to give me a timeout. Anybody know if any property exists to set the value of timeout? Thaks. 回答1: Settings settings = ImmutableSettings.settingsBuilder() .put("cluster.name", cluster_name).put("client.transport.ping_timeout", "30s").build(); TransportClient transport = new TransportClient

Share Cache Timeout

醉酒当歌 提交于 2019-12-23 20:16:47
问题 How long is the timeout for facebook share cache. I edited all of my pages and changes must be reflected. If timeout is unlimited, i have to debug all pages via curl etc. Thanks. 回答1: You can manually "clear" the facebook cache by using the Debugger. Just go there, enter the url you changed and click "debug", that will cause the facebook bot to request the data from your servers even if it was already fetched and cached, and the new data will replace the old. Edit 800k of pages is a lot, no

Why AWS lambda functions In a VPC sometimes timeout and sometimes work fine?

£可爱£侵袭症+ 提交于 2019-12-23 19:44:22
问题 I have some lambda functions in a VPC, some of them need Internet to work so I added a NAT instance (t2.micro) and the problem is that I have some functions sometimes work and sometimes timeout. For example a function that call FB API 80% of the time work and 20% timeout. Another function is using boto3 to create a spot instance 50% of the time timeout and the logs give me. 2018-07-16T06:35:55.909Z 421f98dd-88c2-11e8-913a-63c8d6f276f3 Task timed out after 100.10 seconds Whenever I redeploy my

Android WorkManager 10 minute thread timeout coming from somewhere

梦想的初衷 提交于 2019-12-23 18:36:56
问题 I'm using android.arch.work:work-runtime:1.0.0-alpha12 to run one and only one long-running task. The process can take as much as 20 minutes on an old (slow) device. This is the code snippet used to start the task: OneTimeWorkRequest databaseWork = new OneTimeWorkRequest.Builder(DatabaseWorker.class) .build(); WorkManager.getInstance().enqueue(databaseWork); For background info, databaseWork is retrieving an encrypted zip file, decrypting it, then using the contents to restore a bunch of

Python Exception Handling - Best Practices

﹥>﹥吖頭↗ 提交于 2019-12-23 18:27:34
问题 I'm writing a python program the accesses a database. I want to catch three types of exceptions when I make a http request. Timeouts, network errors, and http errors. I'm looking for the best way to deal with this situation. I need to check for these exceptions multiple times in multiple areas of my code, and it will look something like this each time: try: //some request except timeout: print '\nException: Timeout Error' except connection error: print '\nException: Network Error' except http