Revert "Use non-pinnable buffer for zero byte read (#3094)"

This reverts commit 0029b8f053.
This commit is contained in:
Stephen Halter 2018-11-14 13:42:55 -08:00
parent 0029b8f053
commit 4598850c20
1 changed files with 0 additions and 4 deletions

View File

@ -15,11 +15,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.Internal
public SocketAwaitableEventArgs WaitForDataAsync()
{
#if NETCOREAPP2_1
_awaitableEventArgs.SetBuffer(Memory<byte>.Empty);
#else
_awaitableEventArgs.SetBuffer(Array.Empty<byte>(), 0, 0);
#endif
if (!_socket.ReceiveAsync(_awaitableEventArgs))
{