File tree Expand file tree Collapse file tree 1 file changed +7
-11
lines changed
src/main/java/com/ning/http/client/providers/grizzly Expand file tree Collapse file tree 1 file changed +7
-11
lines changed Original file line number Diff line number Diff line change @@ -403,21 +403,17 @@ public void onTimeout(Connection connection) {
403
403
}
404
404
fcb .add (eventFilter );
405
405
fcb .add (clientFilter );
406
-
407
- if (providerConfig != null ) {
408
- final TransportCustomizer customizer = (TransportCustomizer )
409
- providerConfig .getProperty (TRANSPORT_CUSTOMIZER );
410
- if (customizer != null ) {
411
- customizer .customize (clientTransport , fcb );
412
- } else {
413
- doDefaultTransportConfig ();
414
- }
406
+ clientTransport .getAsyncQueueIO ().getWriter ()
407
+ .setMaxPendingBytesPerConnection (AsyncQueueWriter .AUTO_SIZE );
408
+ final TransportCustomizer customizer = (TransportCustomizer )
409
+ providerConfig .getProperty (TRANSPORT_CUSTOMIZER );
410
+ if (customizer != null ) {
411
+ customizer .customize (clientTransport , fcb );
415
412
} else {
416
413
doDefaultTransportConfig ();
417
414
}
418
415
fcb .add (new WebSocketFilter ());
419
- clientTransport .getAsyncQueueIO ().getWriter ()
420
- .setMaxPendingBytesPerConnection (AsyncQueueWriter .AUTO_SIZE );
416
+
421
417
clientTransport .setProcessor (fcb .build ());
422
418
423
419
}
You can’t perform that action at this time.
0 commit comments