JAVA-6358ClosedGone away

Netty transport: write on a server-closed connection with timeoutMS set throws non-retryable MongoInternalException (NoSuchElementException in addWriteTimeoutHandler)

h3. Summary With {{timeoutMS}} set and the Netty transport, a write on a pooled connection that the far side closed while idle fails with a non\-retryable {{MongoInternalException}} instead of a retryable {{MongoSocketException}}. Reported in HELP\-102596 \(reactive\-streams 5.6.5\). Reproduced on 5.6.5 and 5.14.0; {{NettyStream}} is unchanged on {{main}}. h3. Cause - Server closes an idle pooled connection. Netty's {{DefaultChannelPipeline}} destroys the pipeline on unregister. -

Affected Versions
Versions known to exhibit this issue
5.2.0
Fixed Versions
Versions that include the fix

No fix available yet.

Components
Server components related to this issue
Connection Management
Labels
Tags and classification
CSOTnettyreactive-streamsretryable-writes