Skip to content

Commit 48fedd2

Browse files
author
Emile Joubert
committed
Rebase bug21849
1 parent 265a9a1 commit 48fedd2

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

projects/client/RabbitMQ.Client/src/client/impl/ConnectionBase.cs

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public abstract class ConnectionBase : IConnection
8686
public static int HandshakeTimeout = 10000;
8787

8888
///<summary>Timeout used while waiting for a
89-
///connection.close-ok reply to a connection close request
89+
///connection.close-ok reply to a connection.close request
9090
///(milliseconds)</summary>
9191
public static int ConnectionCloseTimeout = 10000;
9292

@@ -368,25 +368,25 @@ void IDisposable.Dispose()
368368
}
369369
}
370370

371-
///<summary>API-side invocation of connection close.</summary>
371+
///<summary>API-side invocation of connection.close.</summary>
372372
public void Close()
373373
{
374374
Close(CommonFraming.Constants.ReplySuccess, "Goodbye", Timeout.Infinite);
375375
}
376376

377-
///<summary>API-side invocation of connection close.</summary>
377+
///<summary>API-side invocation of connection.close.</summary>
378378
public void Close(ushort reasonCode, string reasonText)
379379
{
380380
Close(reasonCode, reasonText, Timeout.Infinite);
381381
}
382382

383-
///<summary>API-side invocation of connection close with timeout.</summary>
383+
///<summary>API-side invocation of connection.close with timeout.</summary>
384384
public void Close(int timeout)
385385
{
386386
Close(CommonFraming.Constants.ReplySuccess, "Goodbye", timeout);
387387
}
388388

389-
///<summary>API-side invocation of connection close with timeout.</summary>
389+
///<summary>API-side invocation of connection.close with timeout.</summary>
390390
public void Close(ushort reasonCode, string reasonText, int timeout)
391391
{
392392
Close(new ShutdownEventArgs(ShutdownInitiator.Application, reasonCode, reasonText), false, timeout);
@@ -460,7 +460,7 @@ public void Close(ShutdownEventArgs reason, bool abort, int timeout)
460460

461461
try
462462
{
463-
// Try to send connection close
463+
// Try to send connection.close
464464
// Wait for CloseOk in the MainLoop
465465
m_session0.Transmit(ConnectionCloseWrapper(reason.ReplyCode,
466466
reason.ReplyText));
@@ -637,7 +637,8 @@ public void MainLoop()
637637
}
638638

639639
// If allowed for clean shutdown
640-
// Run limited version of the main loop
640+
// Run main loop for a limited amount of time (as defined
641+
// by ConnectionCloseTimeout).
641642
if (shutdownCleanly)
642643
{
643644
ClosingLoop();

0 commit comments

Comments
 (0)