jetty-9 handle null push strategy
This commit is contained in:
parent
9931ddec94
commit
21f717078c
|
@ -67,7 +67,7 @@ public class HttpTransportOverSPDY implements HttpTransport
|
|||
this.connector = connector;
|
||||
this.configuration = configuration;
|
||||
this.endPoint = endPoint;
|
||||
this.pushStrategy = pushStrategy;
|
||||
this.pushStrategy = pushStrategy==null?new PushStrategy.None():pushStrategy;
|
||||
this.stream = stream;
|
||||
this.requestHeaders = requestHeaders;
|
||||
}
|
||||
|
|
|
@ -118,7 +118,7 @@ public class TestServer
|
|||
|
||||
// Spdy Connector
|
||||
SPDYServerConnectionFactory.checkNPNAvailable();
|
||||
PushStrategy push = new ReferrerPushStrategy();
|
||||
PushStrategy push = null; /*new ReferrerPushStrategy();*/
|
||||
HTTPSPDYServerConnectionFactory spdy2 = new HTTPSPDYServerConnectionFactory(2,config,push);
|
||||
spdy2.setInputBufferSize(8192);
|
||||
spdy2.setInitialWindowSize(32768);
|
||||
|
|
Loading…
Reference in New Issue