Skip to content

Commit ed98269

Browse files
chore(implementation)!: use Jetty-12 core without servlets
Port the invoker to upgrade to Eclipse Jetty-12 version 12. Specifically using the new core APIs of Eclipse Jetty-12 that allow the overhead of a Servlet container to be avoided. BREAKING CHANGE: use Java 17 or above, as required by Eclipse Jetty-12. Signed-off-by: Lachlan Roberts <[email protected]>
1 parent 764e2f0 commit ed98269

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

invoker/core/src/main/java/com/google/cloud/functions/invoker/http/TimeoutHandler.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,10 @@ public boolean handle(Request request, Response response, Callback callback) thr
4242
.getComponents()
4343
.getScheduler()
4444
.schedule(
45-
() -> wrappedCallback.failed(new BadMessageException(HttpStatus.REQUEST_TIMEOUT_408, "Function execution timed out")),
45+
() ->
46+
wrappedCallback.failed(
47+
new BadMessageException(
48+
HttpStatus.REQUEST_TIMEOUT_408, "Function execution timed out")),
4649
timeout);
4750

4851
// Cancel the timeout if the request completes the callback first.
@@ -76,4 +79,4 @@ public InvocationType getInvocationType() {
7679
return callback.getInvocationType();
7780
}
7881
}
79-
}
82+
}

0 commit comments

Comments
 (0)