Commits

Arkadi Shishlov committed dae7587 Draft

Increase outstanding pipelined request limit

  • Participants
  • Parent commits 754df27

Comments (0)

Files changed (1)

src/main/java/ra/Client.java

         http2.setMaxEventProcessorHelperThreads(4);
         http2.setUseNio(true);
       //http2.setMaxQueuedRequests(Integer.MAX_VALUE); deadlocks somewhere?
-        http2.setConnectionFactory(new PipeliningHttpConnectionFactory());
+        PipeliningHttpConnectionFactory f = new PipeliningHttpConnectionFactory();
+        f.setMaxRequestsInPipeline(500);
+        http2.setConnectionFactory(f);
         http2.init();
     }