This repository was archived by the owner on Dec 18, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed
src/Microsoft.AspNet.Server.Kestrel/Http Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -80,13 +80,8 @@ private void OnRead(int status, Exception error)
80
80
81
81
var normalRead = error == null && status > 0 ;
82
82
var normalDone = status == 0 || status == - 4077 || status == - 4095 ;
83
- var errorDone = ! ( normalDone || normalRead ) ;
84
83
85
- if ( normalRead )
86
- {
87
- KestrelTrace . Log . ConnectionRead ( _connectionId , status ) ;
88
- }
89
- else if ( normalDone || errorDone )
84
+ if ( ! normalRead )
90
85
{
91
86
KestrelTrace . Log . ConnectionReadFin ( _connectionId ) ;
92
87
SocketInput . RemoteIntakeFin = true ;
@@ -95,12 +90,18 @@ private void OnRead(int status, Exception error)
95
90
_listener . RemoveConnection ( this ) ;
96
91
_socket . Dispose ( ) ;
97
92
98
- if ( errorDone && error != null )
93
+ if ( ! normalDone && error != null )
99
94
{
100
95
Trace . WriteLine ( "Connection.OnRead " + error . ToString ( ) ) ;
101
96
}
97
+
98
+ // Not sure if this is right
99
+ // It should be, but there are some interesting code paths
100
+ // while reading the message body regarding status == 0 && RemoteIntakeFin
101
+ return ;
102
102
}
103
103
104
+ KestrelTrace . Log . ConnectionRead ( _connectionId , status ) ;
104
105
105
106
try
106
107
{
You can’t perform that action at this time.
0 commit comments