Read callback status is always 0 for any error and EOF

This commit is contained in:
Louis DeJardin 2015-07-24 15:36:45 -07:00
parent b93845be19
commit f935567cfd
2 changed files with 4 additions and 4 deletions

View File

@ -57,7 +57,7 @@ namespace Microsoft.AspNet.Server.Kestrel.Http
(_1, _2, _3) => buf,
(_1, status2, error2, state2) =>
{
if (status2 <= 0)
if (status2 == 0)
{
DispatchPipe.Dispose();
Marshal.FreeHGlobal(ptr);

View File

@ -115,7 +115,7 @@ namespace Microsoft.AspNet.Server.KestrelTests
(_3, cb, _4) => buf,
(_3, status2, error2, _4) =>
{
if (status2 <= 0)
if (status2 == 0)
{
clientConnectionPipe.Dispose();
}
@ -203,7 +203,7 @@ namespace Microsoft.AspNet.Server.KestrelTests
(_3, cb, _4) => buf,
(_3, status2, error2, _4) =>
{
if (status2 <= 0)
if (status2 == 0)
{
clientConnectionPipe.Dispose();
return;
@ -216,7 +216,7 @@ namespace Microsoft.AspNet.Server.KestrelTests
(_5, cb, _6) => buf2,
(_5, status3, error3, _6) =>
{
if (status3 <= 0)
if (status3 == 0)
{
clientConnectionTcp.Dispose();
}