mongodb/node-mongodb-native — pull request #626 by tbergeron (2012-06-01 00:17:38+00:00)
Title: ConnectionPool bug with a port is specified

When specifying a port number while using the driver, I always get this:

.../mongodb/lib/mongodb/connection/connection_pool.js:10
number') throw "host and port must be specified [" + host + ":" + port + "]";

But I pass the port number as a number and not a string, there must be something else converting the port number to a string in the code.

So I guess it's a good way to accept a string as a port number since it changes nothing anywhere else in the code. So now it just checks if a port is defined.