@@ -86,7 +86,7 @@ public abstract class ConnectionBase : IConnection
86
86
public static int HandshakeTimeout = 10000 ;
87
87
88
88
///<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
90
90
///(milliseconds)</summary>
91
91
public static int ConnectionCloseTimeout = 10000 ;
92
92
@@ -368,25 +368,25 @@ void IDisposable.Dispose()
368
368
}
369
369
}
370
370
371
- ///<summary>API-side invocation of connection close.</summary>
371
+ ///<summary>API-side invocation of connection. close.</summary>
372
372
public void Close ( )
373
373
{
374
374
Close ( CommonFraming . Constants . ReplySuccess , "Goodbye" , Timeout . Infinite ) ;
375
375
}
376
376
377
- ///<summary>API-side invocation of connection close.</summary>
377
+ ///<summary>API-side invocation of connection. close.</summary>
378
378
public void Close ( ushort reasonCode , string reasonText )
379
379
{
380
380
Close ( reasonCode , reasonText , Timeout . Infinite ) ;
381
381
}
382
382
383
- ///<summary>API-side invocation of connection close with timeout.</summary>
383
+ ///<summary>API-side invocation of connection. close with timeout.</summary>
384
384
public void Close ( int timeout )
385
385
{
386
386
Close ( CommonFraming . Constants . ReplySuccess , "Goodbye" , timeout ) ;
387
387
}
388
388
389
- ///<summary>API-side invocation of connection close with timeout.</summary>
389
+ ///<summary>API-side invocation of connection. close with timeout.</summary>
390
390
public void Close ( ushort reasonCode , string reasonText , int timeout )
391
391
{
392
392
Close ( new ShutdownEventArgs ( ShutdownInitiator . Application , reasonCode , reasonText ) , false , timeout ) ;
@@ -460,7 +460,7 @@ public void Close(ShutdownEventArgs reason, bool abort, int timeout)
460
460
461
461
try
462
462
{
463
- // Try to send connection close
463
+ // Try to send connection. close
464
464
// Wait for CloseOk in the MainLoop
465
465
m_session0 . Transmit ( ConnectionCloseWrapper ( reason . ReplyCode ,
466
466
reason . ReplyText ) ) ;
@@ -637,7 +637,8 @@ public void MainLoop()
637
637
}
638
638
639
639
// 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).
641
642
if ( shutdownCleanly )
642
643
{
643
644
ClosingLoop ( ) ;
0 commit comments