Skip to content

Commit

Permalink
jetty: JettyServer no longer takes a QueuedThreadPool fix #3590
Browse files Browse the repository at this point in the history
  • Loading branch information
jknack committed Dec 8, 2024
1 parent ea9a3f7 commit 2998385
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
import com.typesafe.config.Config;
import edu.umd.cs.findbugs.annotations.NonNull;
import io.jooby.*;
import io.jooby.buffer.DataBufferFactory;
import io.jooby.internal.jetty.JettyHandler;
import io.jooby.internal.jetty.JettyHttpExpectAndContinueHandler;
import io.jooby.internal.jetty.http2.JettyHttp2Configurer;
Expand All @@ -52,10 +51,11 @@ public class JettyServer extends io.jooby.Server.Base {

private ServerOptions options = new ServerOptions().setServer("jetty").setWorkerThreads(THREADS);
private Consumer<HttpConfiguration> httpConfigurer;
private DataBufferFactory bufferFactory;

public JettyServer(@NonNull DataBufferFactory bufferFactory, @NonNull ThreadPool threadPool) {
this.bufferFactory = bufferFactory;
// TODO: integrate buffer factory with Jetty.
// private DataBufferFactory bufferFactory;

public JettyServer(@NonNull QueuedThreadPool threadPool) {
this.threadPool = threadPool;
}

Expand Down Expand Up @@ -91,7 +91,7 @@ public JettyServer configure(Consumer<HttpConfiguration> configurer) {
@NonNull @Override
public io.jooby.Server start(@NonNull Jooby application) {
try {
/** Set max request size attribute: */
/* Set max request size attribute: */
System.setProperty(
"org.eclipse.jetty.server.Request.maxFormContentSize",
Long.toString(options.getMaxRequestSize()));
Expand Down

0 comments on commit 2998385

Please sign in to comment.