File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
projects/client/Unit/src/unit Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -432,7 +432,8 @@ protected List<ConnectionInfo> ListConnections()
432
432
Process proc = ExecRabbitMQCtl ( "list_connections -q pid peer_port" ) ;
433
433
String stdout = proc . StandardOutput . ReadToEnd ( ) ;
434
434
435
- string [ ] splitOn = { Environment . NewLine } ;
435
+ // {Environment.NewLine} is not sufficient
436
+ string [ ] splitOn = new string [ ] { "\r \n " , "\n " } ;
436
437
string [ ] lines = stdout . Split ( splitOn , StringSplitOptions . RemoveEmptyEntries ) ;
437
438
438
439
// line: <[email protected] > 58713
@@ -459,9 +460,9 @@ protected void CloseAllConnections()
459
460
460
461
protected void CloseConnection ( string pid )
461
462
{
462
- ExecRabbitMQCtl ( "close_connection ' " +
463
+ ExecRabbitMQCtl ( "close_connection \" " +
463
464
pid +
464
- "' ' Closed via rabbitmqctl' " ) ;
465
+ "\" \" Closed via rabbitmqctl\" " ) ;
465
466
}
466
467
}
467
468
You can’t perform that action at this time.
0 commit comments