joyent/node — pull request #6937 by orangemocha (2014-01-22 16:33:04+00:00)
Title: test: close server gracefully in http test

The test was calling server.close() after write on the socket
had completed. However the fact that the write had completed was
not valid indication that the server had received the data.

This would result in a premutaure closing of the server and
an ECONNRESET event on the client.