Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Temp. remove port-in-use check that doesn't work with newest Node

  • Loading branch information...
commit a4ed6e55c36cbe8b3c09a1493d087d8714d5d200 1 parent 291dd51
mde authored
Showing with 2 additions and 13 deletions.
  1. +2 −13 lib/cluster/worker.js
View
15 lib/cluster/worker.js
@@ -91,23 +91,12 @@ Worker.prototype = new (function () {
, ssl = this.config.ssl ? ' (SSL)' : ''
, spdy = this.config.spdy ? '(SPDY)' : '';
- utils.network.isPortOpen(port, hostname, function (err, isOpen) {
- if (err) {
- self.log.error(err);
- }
- else if (isOpen) {
- self.log.error("The port " + port + " is already in use.");
- }
- else {
- self.server.listen(port, hostname, function () {
-
+ this.server.listen(port, hostname, function () {
self.log.info('Server worker running in ' + self.config.environment +
- ' on port ' + self.config.port + ssl + spdy + ' with a PID of: ' + process.pid);
+ ' on port ' + self.config.port + ssl + spdy + ' with a PID of: ' + process.pid);
self.log.debug('LOGGING STARTED ============================================');
self.log.debug('============================================================');
});
- }
- });
}
else {
this.log.error('Cannot start server without config.');
Please sign in to comment.
Something went wrong with that request. Please try again.