Croway opened a new pull request, #23531:
URL: https://github.com/apache/camel/pull/23531

   ## Summary
   
   - Call `client.close()` in `OpenAIEndpoint.doStop()` before nulling the 
reference so that OkHttp's dispatcher executor, connection pool, and cache are 
properly shut down.
   - Without this, OkHttp threads (`OkHttp Dispatcher`, `OkHttp 
ConnectionPool`) linger after route stop, especially visible under `exec:java` 
or Camel JBang dev mode where the JVM does not exit.
   
   ## Test plan
   
   - [ ] Verify `mvn verify` passes on the `camel-openai` module
   - [ ] Start a route using the openai component, stop it, and confirm no 
OkHttp threads remain in a thread dump


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to