bmizerany/pq — pull request #13 by benburkert (2012-04-07 20:08:56+00:00)
Title: Send the Termination message when closing a connection

The Postgresql server expects the client to end the connection by first sending a Termination message ('X') followed up by closing the socket. The server logs a "unexpected EOF on client connection" warning if the socket is closed without the preceding Termination message.