kcbanner/connect-mongo — Issue #15: Port not being parsed to an int
Author: jedwood
Created: 2011-11-11 17:15:39+00:00
State: open

Sorry we can't quite pinpoint what broke it, but some combination of updated packages started throwing the following error:

host and port must be specified

from `connection_pool.js:8`

So we did a quick fix by making `connect-mongo.js:43` be this:

options.port = parseInt(db_url.port);

to handle the case of a url being passed into the MongoStore constructor, because `url.parse` leaves `port` as a string.