Skip to content

Commit fadb746

Browse files
Default (TCP) connection timeout is now 60s
1 parent c84b339 commit fadb746

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/com/rabbitmq/client/ConnectionFactory.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,8 @@ public class ConnectionFactory implements Cloneable {
7070
public static final int DEFAULT_AMQP_PORT = AMQP.PROTOCOL.PORT;
7171
/** The default ssl port */
7272
public static final int DEFAULT_AMQP_OVER_SSL_PORT = 5671;
73-
/** The default TCP connection timeout;
74-
* zero means wait indefinitely */
75-
public static final int DEFAULT_CONNECTION_TIMEOUT = 0;
73+
/** The default TCP connection timeout: 60 seconds */
74+
public static final int DEFAULT_CONNECTION_TIMEOUT = 60000;
7675
/**
7776
* The default AMQP 0-9-1 connection handshake timeout. See DEFAULT_CONNECTION_TIMEOUT
7877
* for TCP (socket) connection timeout.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy