FAQ Database Discussion Community


Catch WCF Timeout

wcf,connection-timeout,timeoutexception
Currently i have an issue regarding the WCF Timeout. The problem is how catch the error from WCF and catch it in global.asax ? I put try and catch in the business service, however it does not work. Appreciate much for your answer. Regards...

Google App Engine connection request timeout error

google-app-engine,connection-timeout
I am working on a GAE web app which shows movie related data.To get the movie data I am using API from OMDB (http://www.omdbapi.com/) .Below is the code snippet I use to connect to the API. When i run it locally it works perfectly fine, but doesn't work when deployed...

SQL Server query timeout due to load in different DB on same server but different physical disk

.net,sql-server,ado.net,resources,connection-timeout
We have 2 separate DBs on the same physical server (one for big data, one for runtime data), they use separate set of physical disks, but same SQL Server instance. Recently we run heavy query in the 'big data' database (analysing gigabytes of data) and a very simple query (from...

Timeout for file_get_contents don't works in PHP

php,file-get-contents,connection-timeout
I created a class to englobe some HTTP methods in PHP. Here, I have a method for HTTP POST public function post ($content, $timeout=null) { $timeInit = new DateTime(); $this->method = 'POST'; $header = array(); $header['header'] = null; $header['content'] = is_array($content) ? http_build_query($content) : $content; $header['method'] = $this->method; if ($timeout...

HttpClient.PostAsJsonAsync never sees when the post is succeeding and responding

c#,async-await,dotnet-httpclient,connection-timeout
We are using an HttpClient to post json to a restful web service. In one instance, we are running into something that has us baffled. Using tools like postman, fiddler etc, we can post to an endpoint and see that it is working. When we do the same with HttpClient.PostAsJsonAsync,...

Retrofit and OkHttpClient, catch connection timeout in failure method

android,retrofit,connection-timeout,okhttp
I have the following setup: final OkHttpClient okHttpClient = new OkHttpClient(); okHttpClient.setReadTimeout(5, TimeUnit.SECONDS); okHttpClient.setConnectTimeout(5, TimeUnit.SECONDS); RestAdapter.Builder builder = new RestAdapter.Builder() .setEndpoint(ROOT) .setClient(new OkClient(okHttpClient)) .setLogLevel(RestAdapter.LogLevel.FULL); I am trying to handle the situation in which my server is down and the user gets a connection timeout exception, this is my logging: java.net.SocketTimeoutException:...

Stored procedure timesout called from code, executes ok from SSMS

c#,sql-server,stored-procedures,connection-timeout
I have stored procedure which takes around 10 seconds to run when called from SSMS and executes successfully. The procedure takes an int as a parameter. When calling the same stored procedure from code: using (var connection = new SqlConnection(ConnectionStringName)) { using (var cmd = new SqlCommand("ProcedureName", connection)) { cmd.CommandType...