release the ByteBuf Fixes #13492 (#13514)

This commit is contained in:
G-XD 2023-12-20 21:06:23 +08:00 committed by GitHub
parent 75f740df0a
commit 092a1bd619
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -76,6 +76,8 @@ public class ResteasyRequestContainerFilterAdapter implements RestRequestFilter,
restFilterContext.setComplete(true);
} catch (Throwable e) {
throw new RuntimeException("dubbo rest resteasy ContainerRequestFilter write response encode error", e);
} finally {
containerRequestContext.getHttpRequest().releaseContentBuffer();
}
}
}