Skip to content

Commit 092de95

Browse files
authored
Merge pull request #48941 from geoand/rest-client-response
Switch to worker thread when handling exceptions in REST Client and Response type
2 parents ba80170 + 905f515 commit 092de95

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

extensions/resteasy-reactive/rest-client/runtime/src/main/java/io/quarkus/rest/client/reactive/runtime/MicroProfileRestClientResponseFilter.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ public void filter(ClientRequestContext requestContext, ClientResponseContext re
3939
RestClientRequestContext restClientContext = ((ClientRequestContextImpl) requestContext)
4040
.getRestClientRequestContext();
4141

42-
boolean requiresBlocking = RestClientRecorder.isClassBlocking(exceptionMapper.getClass());
42+
boolean requiresBlocking = RestClientRecorder.isClassBlocking(exceptionMapper.getClass())
43+
|| restClientContext.isJakartaResponseDownload();
4344
if (Context.isOnEventLoopThread() && requiresBlocking) {
4445
switchToWorkerThreadPoolAndRetry(restClientContext);
4546
break;

0 commit comments

Comments
 (0)