8000 Default (TCP) connection timeout is now 60s · yezijiang/rabbitmq-java-client@fadb746 · GitHub
[go: up one dir, main page]

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)
0