Timeout on a function call

You may use the signal package if you are running on UNIX: 10 seconds after the call signal.alarm(10), the handler is called. This raises an exception that you can intercept from the regular Python code. This module doesn’t play well with threads (but then, who does?) Note that since we raise an exception when timeout happens, it may end … Read more

Session timeout in ASP.NET

I am running an ASP.NET 2.0 application in IIS 6.0. I want session timeout to be 60 minutes rather than the default 20 minutes. I have done the following Set <sessionState timeout=”60″></sessionState> in web.config. Set session timeout to 60 minutes in IIS manager/Web site properties/ASP.NET configuration settings. Set idle timeout to 60 minutes in application pool properties/performance. I … Read more

How to handle ETIMEDOUT error?

This is caused when your request response is not received in given time(by timeout request module option). Basically to catch that error first, you need to register a handler on error, so the unhandled error won’t be thrown anymore: out.on(‘error’, function (err) { /* handle errors here */ }). Some more explanation here. In the handler you can check if … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)