Permalink
Browse files

Release v0.0.30

  • Loading branch information...
1 parent 18a98e4 commit adbace79295a2135eca4e6f7a45f75969d9aadb8 @pgte committed Oct 12, 2010
Showing with 9 additions and 5 deletions.
  1. +5 −0 ChangeLog
  2. +1 −3 lib/fugue.js
  3. +1 −1 package.json
  4. +2 −1 test/test_app_reload.js
View
@@ -1,3 +1,8 @@
+2010.10.11 v0.0.30
+
+* Protected worker killing from throwing an exception when the worker is no longer there, in order to not compromise the whole shutdown process.
+* Fixed some tests on linux. For some reason, linux has more process affinity and it's harder to make him balance between workers.
+
2010.10.11 v0.0.29
* fixed connection counting on the workers
View
@@ -313,9 +313,7 @@ exports.start = function(server, port, host, worker_count, options) {
// Setup killer
var worker_killer = function() {
if(connection_count == 0) {
- process.nextTick(function() {
- process.exit();
- });
+ process.exit();
} else {
// Stop listening for new connections - remove watcher from the event loop
server.watcher.stop();
View
@@ -1,6 +1,6 @@
{ "name" : "fugue"
, "description" : "Unicorn for node for node"
-, "version" : "0.0.29"
+, "version" : "0.0.30"
, "homepage" : "http://www.metaduck.com/fugue"
, "author" : "Pedro Teixeira <pedro.teixeira@gmail.com> (http://www.metaduck.com)"
, "contributors" :
View
@@ -54,6 +54,7 @@ exports.run = function(next) {
// start making calls
var intervalId = setInterval(make_call, 100);
setTimeout(function() {
+ assert.equal(2, pid_count, "We expected to have contacted 2 workers so far (before the respawn). we contacted "+pid_count);
// Now, restart app
spawned.kill('SIGUSR2');
@@ -64,7 +65,7 @@ exports.run = function(next) {
if (next) next();
}, 5000);
- }, 3000);
+ }, 5000);
}, 2000);
} else {

0 comments on commit adbace7

Please sign in to comment.