465857 - Support HTTP/2 clear-text server-side upgrade.
Added earlier check about the connection being upgraded to avoid doing more work in the now obsolete connection.
This commit is contained in:
parent
fb958833de
commit
c04896c9cb
|
@ -224,6 +224,10 @@ public class HttpConnection extends AbstractConnection implements Runnable, Http
|
|||
|
||||
// Parse the request buffer
|
||||
boolean handle = parseRequestBuffer();
|
||||
// If there was a connection upgrade, the other
|
||||
// connection took over, nothing more to do here.
|
||||
if (getEndPoint().getConnection()!=this)
|
||||
break;
|
||||
|
||||
// Handle close parser
|
||||
if (_parser.isClose())
|
||||
|
@ -245,8 +249,7 @@ public class HttpConnection extends AbstractConnection implements Runnable, Http
|
|||
// Continue or break?
|
||||
else if (filled<=0)
|
||||
{
|
||||
// Be fill interested only if there was no connection upgrade.
|
||||
if (filled==0 && getEndPoint().getConnection()==this)
|
||||
if (filled==0)
|
||||
fillInterested();
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue