Read callback status is always 0 for any error and EOF
This commit is contained in:
parent
b93845be19
commit
f935567cfd
|
|
@ -57,7 +57,7 @@ namespace Microsoft.AspNet.Server.Kestrel.Http
|
||||||
(_1, _2, _3) => buf,
|
(_1, _2, _3) => buf,
|
||||||
(_1, status2, error2, state2) =>
|
(_1, status2, error2, state2) =>
|
||||||
{
|
{
|
||||||
if (status2 <= 0)
|
if (status2 == 0)
|
||||||
{
|
{
|
||||||
DispatchPipe.Dispose();
|
DispatchPipe.Dispose();
|
||||||
Marshal.FreeHGlobal(ptr);
|
Marshal.FreeHGlobal(ptr);
|
||||||
|
|
|
||||||
|
|
@ -115,7 +115,7 @@ namespace Microsoft.AspNet.Server.KestrelTests
|
||||||
(_3, cb, _4) => buf,
|
(_3, cb, _4) => buf,
|
||||||
(_3, status2, error2, _4) =>
|
(_3, status2, error2, _4) =>
|
||||||
{
|
{
|
||||||
if (status2 <= 0)
|
if (status2 == 0)
|
||||||
{
|
{
|
||||||
clientConnectionPipe.Dispose();
|
clientConnectionPipe.Dispose();
|
||||||
}
|
}
|
||||||
|
|
@ -203,7 +203,7 @@ namespace Microsoft.AspNet.Server.KestrelTests
|
||||||
(_3, cb, _4) => buf,
|
(_3, cb, _4) => buf,
|
||||||
(_3, status2, error2, _4) =>
|
(_3, status2, error2, _4) =>
|
||||||
{
|
{
|
||||||
if (status2 <= 0)
|
if (status2 == 0)
|
||||||
{
|
{
|
||||||
clientConnectionPipe.Dispose();
|
clientConnectionPipe.Dispose();
|
||||||
return;
|
return;
|
||||||
|
|
@ -216,7 +216,7 @@ namespace Microsoft.AspNet.Server.KestrelTests
|
||||||
(_5, cb, _6) => buf2,
|
(_5, cb, _6) => buf2,
|
||||||
(_5, status3, error3, _6) =>
|
(_5, status3, error3, _6) =>
|
||||||
{
|
{
|
||||||
if (status3 <= 0)
|
if (status3 == 0)
|
||||||
{
|
{
|
||||||
clientConnectionTcp.Dispose();
|
clientConnectionTcp.Dispose();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue