JAVA-6313ClosedFixed

StackOverflowError: AsynchronousChannelStream.BasicCompletionHandler wraps the completion handler per partial read (regression in 5.6.0)

h2. Summary Since 5.6.0, {{AsynchronousChannelStream.BasicCompletionHandler.completed}} (driver-core) wraps the caller's completion handler in a new async callback for *every partial read* of a message. When the last partial read completes, the completion unwinds the whole chain synchronously on the {{async-channel-group-N-handler-executor}} thread. Over the default TLS transport ({{TlsChannelStreamFactoryFactory}} / {{AsynchronousTlsChannel}}), {{TlsChannelImpl.read}} returns as soon as any d

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix
5.14.0
Components
Server components related to this issue

No components specified.

Labels
Tags and classification
asyncreactive-streamstls