mongodb/mongo-ruby-driver — pull request #128 by nelhage (2012-11-12 23:33:50+00:00)
Title: If sending data on a socket fails, close the socket.

This mirrors the behavior on receive, and can prevent a situation
where we keep trying to use the same socket to send data after a
connection is dropped.