jetty-9 handle null push strategy
This commit is contained in:
parent
9931ddec94
commit
21f717078c
|
@ -894,7 +894,7 @@ public class StandardSession implements ISession, Parser.Listener, Dumpable
|
||||||
{
|
{
|
||||||
if (flushing || queue.isEmpty())
|
if (flushing || queue.isEmpty())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
Set<IStream> stalledStreams = null;
|
Set<IStream> stalledStreams = null;
|
||||||
for (int i = 0; i < queue.size(); ++i)
|
for (int i = 0; i < queue.size(); ++i)
|
||||||
{
|
{
|
||||||
|
|
|
@ -67,7 +67,7 @@ public class HttpTransportOverSPDY implements HttpTransport
|
||||||
this.connector = connector;
|
this.connector = connector;
|
||||||
this.configuration = configuration;
|
this.configuration = configuration;
|
||||||
this.endPoint = endPoint;
|
this.endPoint = endPoint;
|
||||||
this.pushStrategy = pushStrategy;
|
this.pushStrategy = pushStrategy==null?new PushStrategy.None():pushStrategy;
|
||||||
this.stream = stream;
|
this.stream = stream;
|
||||||
this.requestHeaders = requestHeaders;
|
this.requestHeaders = requestHeaders;
|
||||||
}
|
}
|
||||||
|
|
|
@ -118,7 +118,7 @@ public class TestServer
|
||||||
|
|
||||||
// Spdy Connector
|
// Spdy Connector
|
||||||
SPDYServerConnectionFactory.checkNPNAvailable();
|
SPDYServerConnectionFactory.checkNPNAvailable();
|
||||||
PushStrategy push = new ReferrerPushStrategy();
|
PushStrategy push = null; /*new ReferrerPushStrategy();*/
|
||||||
HTTPSPDYServerConnectionFactory spdy2 = new HTTPSPDYServerConnectionFactory(2,config,push);
|
HTTPSPDYServerConnectionFactory spdy2 = new HTTPSPDYServerConnectionFactory(2,config,push);
|
||||||
spdy2.setInputBufferSize(8192);
|
spdy2.setInputBufferSize(8192);
|
||||||
spdy2.setInitialWindowSize(32768);
|
spdy2.setInitialWindowSize(32768);
|
||||||
|
|
Loading…
Reference in New Issue