Skip to content

Instantly share code, notes, and snippets.

View tjfontaine's full-sized avatar

Timothy J Fontaine tjfontaine

View GitHub Profile
var net = require('net');
var server = net.createServer(function(conn) {
console.log('client connection');
conn.destroy();
}).listen(function() {
console.log('server listening', server.address());
net.connect(server.address());
});
diff --git a/src/node_watchdog.cc b/src/node_watchdog.cc
index 34da4b0..bf4b596 100644
--- a/src/node_watchdog.cc
+++ b/src/node_watchdog.cc
@@ -20,7 +20,7 @@
// USE OR OTHER DEALINGS IN THE SOFTWARE.
#include "node_watchdog.h"
-#include <assert.h>
+#include "util.h"
npm ERR! Error: SSL Error: null
npm ERR! at Request.onResponse (/root/.node-master/lib/node_modules/npm/node_modules/request/request.js:645:24)
npm ERR! at ClientRequest.g (events.js:187:16)
npm ERR! at ClientRequest.EventEmitter.emit (events.js:98:17)
npm ERR! at HTTPParser.parserOnIncomingClient (_http_client.js:381:21)
npm ERR! at HTTPParser.parserOnHeadersComplete (_http_common.js:111:23)
npm ERR! at TLSSocket.socketOnData (_http_client.js:272:20)
npm ERR! at TLSSocket.EventEmitter.emit (events.js:98:17)
npm ERR! at readableAddChunk (_stream_readable.js:156:16)
npm ERR! at TLSSocket.Readable.push (_stream_readable.js:123:10)
mfind /NodeCore/public/builds/node/fd9e01c031ac843955532af4dd87b5caec38ba73 | sort
/NodeCore/public/builds/node/fd9e01c031ac843955532af4dd87b5caec38ba73/centos-5.7
/NodeCore/public/builds/node/fd9e01c031ac843955532af4dd87b5caec38ba73/centos-5.7/ia32
/NodeCore/public/builds/node/fd9e01c031ac843955532af4dd87b5caec38ba73/centos-5.7/ia32/build.tar.bz2
/NodeCore/public/builds/node/fd9e01c031ac843955532af4dd87b5caec38ba73/centos-5.7/x64
/NodeCore/public/builds/node/fd9e01c031ac843955532af4dd87b5caec38ba73/centos-5.7/x64/build.tar.bz2
/NodeCore/public/builds/node/fd9e01c031ac843955532af4dd87b5caec38ba73/osx
/NodeCore/public/builds/node/fd9e01c031ac843955532af4dd87b5caec38ba73/osx/ia32
/NodeCore/public/builds/node/fd9e01c031ac843955532af4dd87b5caec38ba73/osx/ia32/build.tar.bz2
/NodeCore/public/builds/node/fd9e01c031ac843955532af4dd87b5caec38ba73/osx/x64
date linux-x86 linux-x64
2013-10-19 378 1618
2013-10-20 435 1637
2013-10-21 762 5065
2013-10-22 611 5006
2013-10-23 876 5210
2013-10-24 1298 5113
2013-10-25 593 4750
2013-10-26 389 1772
2013-10-27 1218 1582
diff --git a/common.gypi b/common.gypi
index 61172ef..6bcc221 100644
--- a/common.gypi
+++ b/common.gypi
@@ -49,7 +49,7 @@
},
},
'Release': {
- 'cflags': [ '-O3', '-ffunction-sections', '-fdata-sections' ],
+ 'cflags': [ '-O3', '-ffunction-sections', '-fdata-sections', '-fno-omit-frame-pointer' ],
diff --git a/lib/child_process.js b/lib/child_process.js
index 33928a9..151897d 100644
--- a/lib/child_process.js
+++ b/lib/child_process.js
@@ -952,7 +952,10 @@ ChildProcess.prototype.spawn = function(options) {
var err = this._handle.spawn(options);
- if (err) {
+ if (!constants)
Macintosh-2:node tjfontaine$ python tools/test.py simple/test-fs-watch-recursive
=== release test-fs-watch-recursive ===
Path: simple/test-fs-watch-recursive
assert.js:98
throw new assert.AssertionError({
^
AssertionError: "testsubdir/watch.txt" == "testsubdir"
at FSWatcher.<anonymous> (/Users/tjfontaine/Development/node/test/simple/test-fs-watch-recursive.js:53:14)
at FSWatcher.EventEmitter.emit (events.js:101:17)
at FSEvent.FSWatcher._handle.onchange (fs.js:1016:12)
diff --git a/src/uuid.cc b/src/uuid.cc
index ff0d6ec..9ab9647 100644
--- a/src/uuid.cc
+++ b/src/uuid.cc
@@ -2,14 +2,29 @@
#include <node.h>
#include <node_object_wrap.h>
#include <assert.h>
+
+#ifdef _WIN32
dtrace -n 'pid$target::*Isolate*Throw*:entry { @[probefunc] = count(); }' -c './node t.js'
dtrace: description 'pid$target::*Isolate*Throw*:entry ' matched 5 probes
tick
tick
tick
tick
tick
tick
tick
tick