-
Hello, currently I am migrating several components from RESTEasy Classic to Reactive (just switching the dependency at first, not changing the way REST is used). In one project which is an AWS lambda and doesn't have own REST resources but uses the reactive REST client, I am seeing a strange behavior which causes me some headache. After roughly 6 minutes and after the lambda has long finished running, Quarkus seems to continue using the former connection which causes then a SocketException. Enabling detailed logs for the REST client shows:
This seems to happen on the I/O thread:
Does anyone know what is causing this? What can I do to avoid this? Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 15 replies
-
/cc @FroMage (resteasy-reactive), @Sgitario (rest-client,resteasy-reactive), @cescoffier (rest-client), @geoand (rest-client,resteasy-reactive), @matejvasek (amazon-lambda), @patriot1burke (amazon-lambda), @stuartwdouglas (resteasy-reactive) |
Beta Was this translation helpful? Give feedback.
-
Workaround to avoid the exception (see discussion above):
Thanks @cescoffier for the hint with keep-alive, thanks @geoand. |
Beta Was this translation helpful? Give feedback.
-
Interesting enough, we don't see to have a way to turn off Vertx's keep-alive for the Reactive REST Client... @TomasHofman would you like to add that? |
Beta Was this translation helpful? Give feedback.
Workaround to avoid the exception (see discussion above):
Thanks @cescoffier for the hint with keep-alive, thanks @geoand.