When a process attempts to connect to a remote service, and fails to do so after a predetermined period of time.
Questions tagged [connection-timeout]
833 questions
34
votes
5 answers
SoapUI: ConnectException: Connection timed out:
i try to send request via REST.
I get success response when using firefox rest-client,
but in SoapUI i get exception attached below.
How to resolve this issue?
Thanks.
java.net.ConnectException: Connection
timed out: connect at
…

katrin
- 1,146
- 1
- 13
- 24
34
votes
7 answers
MySQL Workbench drops connection when idle
I'm using MySQL Workbench 6.3 on my OS X 10.9.5 to manage several cloud databases (hosted on Rackspace), and I get the following issue:
When inactive for 5 minutes, the following problems happen:
I cannot run any query (error 2013: Lost connection…

Michel Y
- 341
- 1
- 3
- 5
30
votes
1 answer
Using sping's restTemplate with a timeout, how do I detect a timeout?
I've initialized my restTemplate as follows:
HttpClient httpClient = HttpClientBuilder.create().build();
HttpComponentsClientHttpRequestFactory requestFactory = new…

linuxdan
- 4,476
- 4
- 30
- 41
25
votes
5 answers
Multiple Simultaneous SQL Connection Timeouts In Multithreaded Windows Service
I have a multithreaded Windows Service I've developed with VS 2010 (.NET 4.0) which can have anywhere from a few to a few dozen threads, each retrieving data from a slow server over the Internet and then using a local database to record this data…

ALEXintlsos
- 1,809
- 4
- 17
- 17
25
votes
6 answers
Why JavaMail connection timeout is too long
In my application I connect to server to authenticate users. This is code:
try {
Properties prop = new Properties();
prop.put("mail.smtp.starttls.enable","true");
prop.put("mail.smtp.auth", "true");
…

kuba44
- 1,838
- 9
- 34
- 62
23
votes
4 answers
ActiveRecord::ConnectionTimeoutError happening sporadically
Whenever I have an application using ActiveRecord I get this ConnectionTimeoutError - but always after a certain unknown period of time
ActiveRecord::ConnectionTimeoutError (could not obtain a database connection within 5 seconds. The max pool size…

Krista
- 895
- 1
- 6
- 16
18
votes
7 answers
How to add CommandTimeout to connection string in web.config
How to add CommandTimeout to connection string in web.config?
I tried:
user833102
17
votes
2 answers
OkHttp3 Never Timeout on slow internet
First of all, I have read so many questions regarding my question but it never gives me the solution. Here are some of the questions which I read regarding my question.
Question 1
Question 2
Qusetion 3
Question 4
Question 5
Question 6
Question…

Tanveer Munir
- 1,956
- 1
- 12
- 27
17
votes
3 answers
Debugging 504 Gateway Timeout and its actual cause and solution
We are running following stack on our web server Varnish + Nginx + FastCGI (php-fpm) on RHEL 6.6
Its a dynamic website with different result sets everytime and has around 2 million url's indexed with Google.
Its running on nginx/1.5.12 and PHP…

KeyurM
- 388
- 1
- 3
- 12
16
votes
1 answer
What is the default timeout for AngularJS $http service requests?
In $http docs it does not mention which is the default timeout in case of undefined.
How can I know which is the default value for this configuration?

Facundo Chambo
- 3,088
- 6
- 20
- 25
16
votes
5 answers
HttpClient.PostAsJsonAsync never sees when the post is succeeding and responding
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…

Danny
- 308
- 1
- 4
- 12
16
votes
2 answers
Connection.open for hangs indefinitely, no exception is thrown
When I try to do the following code, the program hangs indefinitely. I don't know why and there seems to be other unanswered topics on the matter. Although, if the IP\website cannot be reached, then it works as intended.
private void DoStuff()
…

TheKobra
- 881
- 1
- 9
- 16
15
votes
1 answer
PHP file_get_contents ignoring timeout?
$url = 'http://a.url/i-know-is-down';
//ini_set('default_socket_timeout', 5);
$ctx = stream_context_create(array(
'http' => array(
'timeout' => 5,
'ignore_errors' => true
)
)
);
$start = microtime(true);
$content =…

Cesar
- 4,076
- 8
- 44
- 68
15
votes
2 answers
FTP response 421 received. Server closed connection
I am writing a JAVA code to traverse FTP Location using Apache Commons Net FTPClient and getting output in an Excel file. the code execute correctly for approx 5 min but then gives an…

crazyproton
- 163
- 1
- 1
- 8
15
votes
1 answer
Will "Always On" setting prevent BOTH idleTimeout and periodicRestart?
Has you may know, Web sites hosted under Microsoft Azure Web Sites service are by default configure to timeout after idling 20 minutes (idleTimeout) and the application pool to restart every 29 hours (periodicRestart). This cause the web site to be…

PLT
- 319
- 1
- 4
- 16