Read lock is release if socket is closed.
Merge remote-tracking branch 'origin/1.7.8' into 1.7.8