Skip to content

Commit 46ed915

Browse files
author
Stefán J. Sigurðarson
committed
Giving the server a little more time to restart the RabbitMQ server.
1 parent 81e368b commit 46ed915

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

projects/RabbitMQ.Client/client/impl/SocketFrameHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public SocketFrameHandler(AmqpTcpEndpoint endpoint, Func<AddressFamily, ITcpClie
9999
{
100100
AllowSynchronousContinuations = true,
101101
SingleReader = true,
102-
SingleWriter = false
102+
SingleWriter = true
103103
});
104104

105105
_channelReader = channel.Reader;

projects/Unit/RabbitMQCtl.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ public static void CloseConnection(string pid)
308308
public static void RestartRabbitMQ()
309309
{
310310
StopRabbitMQ();
311-
Thread.Sleep(500);
311+
Thread.Sleep(1000);
312312
StartRabbitMQ();
313313
}
314314

0 commit comments

Comments
 (0)