@@ -54,9 +54,6 @@ public class AMQConnection extends ShutdownNotifierComponent implements Connecti
54
54
/** Timeout used while waiting for AMQP handshaking to complete (milliseconds) */
55
55
public static final int HANDSHAKE_TIMEOUT = 10000 ;
56
56
57
- /** Timeout used while waiting for a connection.close-ok (milliseconds) */
58
- public static final int CONNECTION_CLOSING_TIMEOUT = 10000 ;
59
-
60
57
/**
61
58
* Retrieve a copy of the default table of client properties that
62
59
* will be sent to the server during connection startup. This
@@ -593,11 +590,7 @@ public SocketCloseWait(ShutdownSignalException sse) {
593
590
594
591
@ Override public void run () {
595
592
try {
596
- _appContinuation .uninterruptibleGet (CONNECTION_CLOSING_TIMEOUT );
597
- } catch (TimeoutException ise ) {
598
- // Broker didn't close socket on time, force socket close
599
- // FIXME: notify about timeout exception?
600
- _frameHandler .close ();
593
+ _appContinuation .uninterruptibleGet ();
601
594
} finally {
602
595
_running = false ;
603
596
_channel0 .notifyOutstandingRpc (cause );
@@ -695,8 +688,7 @@ public void abort(int closeCode, String closeMessage, int timeout)
695
688
/**
696
689
* Protected API - Delegates to {@link
697
690
* #close(int,String,boolean,Throwable,int,boolean) the
698
- * six-argument close method}, passing
699
- * {@link #CONNECTION_CLOSING_TIMEOUT} for the timeout, and
691
+ * six-argument close method}, passing -1 for the timeout, and
700
692
* false for the abort flag.
701
693
*/
702
694
public void close (int closeCode ,
@@ -705,8 +697,7 @@ public void close(int closeCode,
705
697
Throwable cause )
706
698
throws IOException
707
699
{
708
- close (closeCode , closeMessage , initiatedByApplication , cause ,
709
- CONNECTION_CLOSING_TIMEOUT , false );
700
+ close (closeCode , closeMessage , initiatedByApplication , cause , -1 , false );
710
701
}
711
702
712
703
/**
0 commit comments