chris-l/mock-couch — pull request #3 by davidwood (2014-05-15 17:49:35+00:00)
Title: Prevent keep-alive connections if keepAlive option is false

If a client uses HTTP keep-alive, calling `server.close()` can result in a lengthy delay, based on the keep-alive timeout, which can drastically increase the time to run tests. I've added an options hash to the constructor, with a single option, `keepAlive`, that when set to false will always return a `Connection: close` header, preventing the long lived connection.