We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d8fff1 commit bcde29eCopy full SHA for bcde29e
projects/RabbitMQ.Client/client/impl/SocketFrameHandler.cs
@@ -250,16 +250,15 @@ public bool TryReadFrame(out InboundFrame frame)
250
251
public void SendHeader()
252
{
253
-#if NET
254
- _pipeWriter.AsStream().Write(ProtocolHeader);
255
-#else
256
- _pipeWriter.AsStream().Write(ProtocolHeader.ToArray(), 0, ProtocolHeader.Length);
257
-#endif
+ _pipeWriter.Write(ProtocolHeader);
258
}
259
260
public void Write(ReadOnlyMemory<byte> memory)
261
262
- _channelWriter.TryWrite(memory);
+ if (!_channelWriter.TryWrite(memory))
+ {
+ throw new ApplicationException("Please report this bug here: https://github.com/rabbitmq/rabbitmq-dotnet-client/issues");
+ }
263
264
265
private async Task WriteLoop()
0 commit comments