File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
src/main/java/com/ning/http/client/providers/grizzly Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 61
61
import org .glassfish .grizzly .FileTransfer ;
62
62
import org .glassfish .grizzly .Grizzly ;
63
63
import org .glassfish .grizzly .WriteResult ;
64
+ import org .glassfish .grizzly .asyncqueue .AsyncQueueWriter ;
64
65
import org .glassfish .grizzly .attributes .Attribute ;
65
66
import org .glassfish .grizzly .attributes .AttributeStorage ;
66
67
import org .glassfish .grizzly .filterchain .BaseFilter ;
@@ -415,7 +416,8 @@ public void onTimeout(Connection connection) {
415
416
doDefaultTransportConfig ();
416
417
}
417
418
fcb .add (new WebSocketFilter ());
418
- clientTransport .getAsyncQueueIO ().getWriter ().setMaxPendingBytesPerConnection (-1 );
419
+ clientTransport .getAsyncQueueIO ().getWriter ()
420
+ .setMaxPendingBytesPerConnection (AsyncQueueWriter .AUTO_SIZE );
419
421
clientTransport .setProcessor (fcb .build ());
420
422
421
423
}
You can’t perform that action at this time.
0 commit comments