ottoka opened a new pull request, #1085: URL: https://github.com/apache/james-project/pull/1085
Remote Delivery now uses pools of SMTP and SMTPS sessions. This prevents a race condition in setting per-delivery properties. The pools replace the former shared session objects. During tryDeliveryToHost(), the selectSession() method now borrows a session from the appropriate pool. Its properties can be changed as necessary for the current delivery. Once delivery is done, the new method releaseSession() finally returns this session to its pool. The pool resets any delivery specific properties to prevent information leaks. The session pools are unbounded, so they can scale to whatever maximum thread concurrency is required. Otherwise, the default pool configuration should be fine. -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
