Improve defunct socket detection

Merged
RO
21d ago
+85-0

When picking up connections form the pool, the driver will now check whether the underlying socket's reading stream has been closed by the remote. If it has, the connection will be dropped instead of being used.

Closes: DRIVERS-502

Depends on: