Permalink
Browse files

Release v0.1.0

  • Loading branch information...
1 parent 9460dbe commit 3cb7669f5706e04cb1d3de5c0318b19d1d0cd71b @pgte committed Dec 23, 2010
Showing with 24 additions and 12 deletions.
  1. +5 −0 ChangeLog
  2. +3 −3 examples/test_app.js
  3. +8 −1 lib/fugue.js
  4. +3 −3 package.json
  5. +2 −3 tools/one_test.js
  6. +3 −2 tools/test.js
View
@@ -1,3 +1,8 @@
+2010.12.23 v 0.1.0
+
+* now only supports node versions 0.3.2 and up
+* added a timeout of 30 seconds for worker death really happening
+
2010.12.22 v 0.0.38
* disable PING/PONG debug code
@@ -1,7 +1,7 @@
process.on('uncaughtException', function(excp) {
- var sys = require('sys')
- console.log(sys.inspect(excp));
- console.log(sys.inspect(excp.stack));
+ var util = require('util')
+ console.log(util.inspect(excp));
+ console.log(util.inspect(excp.stack));
});
var fugue = require('../lib/fugue.js'),
View
@@ -186,7 +186,6 @@ exports.start = function(server, port, host, worker_count, options) {
var net = require('net'),
http = require('http'),
spawn = require('child_process').spawn,
- sys = require('sys'),
fs = require('fs'),
netBinding = process.binding('net');
@@ -457,9 +456,17 @@ exports.start = function(server, port, host, worker_count, options) {
var die_soon_interval = setInterval(function() {
if (server.connections == 0) {
clearInterval(die_soon_interval);
+ die_soon_interval = undefined;
process.exit();
}
}, 1000);
+
+ setTimeout(function() {
+ if (die_soon_interval) {
+ clearInterval(die_soon_interval);
+ }
+ process.exit();
+ }, 30000);
}
};
View
@@ -1,6 +1,6 @@
{ "name" : "fugue"
, "description" : "Unicorn for node"
-, "version" : "0.0.38"
+, "version" : "0.1.0"
, "homepage" : "http://www.metaduck.com/fugue"
, "author" : "Pedro Teixeira <pedro.teixeira@gmail.com> (http://www.metaduck.com)"
, "contributors" :
@@ -16,10 +16,10 @@
, "web" : "http://github.com/pgte/fugue/issues"
}
, "directories" : { "lib" : "./lib" }
-, "engines" : { "node" : ">=0.2.2" }
+, "engines" : { "node" : ">=0.3.2" }
, "scripts" : { "install" : "node-waf configure build"}
, "dependencies" :
- { "carrier" : ">=0.0.1"
+ { "carrier" : ">=0.0.4"
}
, "licenses" :
[ { "type" : "MIT"
View
@@ -1,4 +1,4 @@
-
+var util = require('util');
var path = require('path');
var test_path = path.join(__dirname, '..', 'test', process.argv[2] + '.js');
@@ -27,8 +27,7 @@ process.on('uncaughtException', function(excp) {
if (excp.backtrace) process.stdout.write(excp.backtrace);
if (excp.stack) process.stdout.write(excp.stack);
} else {
- sys = require('sys');
- process.stdout.write(sys.inspect(excp));
+ process.stdout.write(util.inspect(excp));
}
process.stdout.write("\n");
do_exit();
View
@@ -1,12 +1,13 @@
+var util = require('util');
+
process.on('uncaughtException', function(excp) {
if (excp.message || excp.name) {
if (excp.name) process.stdout.write(excp.name);
if (excp.message) process.stdout.write(excp.message);
if (excp.backtrace) process.stdout.write(excp.backtrace);
if (excp.stack) process.stdout.write(excp.stack);
} else {
- sys = require('sys');
- process.stdout.write(sys.inspect(excp));
+ process.stdout.write(util.inspect(excp));
}
});

0 comments on commit 3cb7669

Please sign in to comment.