This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var yuserv = require('./yuserv'); | |
| fuip = "fedora12"; | |
| fuport = 8000; | |
| fufilesdir = "../vids"; | |
| myurl = "http://www.google.com/"; | |
| yuserv.get("/style.css", yuserv.staticHandler("style.css")); | |
| yuserv.get("/flowplayer.js", yuserv.staticHandler("flowplayer.js")); | |
| yuserv.get("/flowplayer.swf", yuserv.staticHandler("flowplayer.swf")); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var yuserv = require('./yuserv'); | |
| fuip = "fedora12"; | |
| fuport = 8000; | |
| fufilesdir = "../vids"; | |
| myurl = "http://www.google.com/"; | |
| yuserv.get("/style.css", yuserv.staticHandler("style.css")); | |
| yuserv.get("/flowplayer.js", yuserv.staticHandler("flowplayer.js")); | |
| yuserv.get("/flowplayer.swf", yuserv.staticHandler("flowplayer.swf")); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Copyright 2009 Ryan Dahl <[email protected]> | |
| #include <node_net.h> | |
| #include <assert.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <strings.h> | |
| #include <errno.h> | |
| #include <sys/types.h> | |
| #include <sys/socket.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| static void AfterResolveMX(struct dns_ctx *ctx, | |
| struct dns_rr_mx *result, | |
| void *data) { | |
| assert(ctx == &dns_defctx); | |
| HandleScope scope; | |
| Persistent<Function> *cb = cb_unwrap(data); | |
| if (result == NULL) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "./xml_syntax_error.h" | |
| #include "./xsl_transform.h" | |
| #include "./xml_sax_parser.h" | |
| #include "./xml_document.h" | |
| namespace libxmljs { | |
| inline v8::Handle<v8::Value> | |
| BuildDoc(xmlDoc *doc, JsObj *errors) { | |
| if (doc == NULL) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/lib/http.js b/lib/http.js | |
| old mode 100644 | |
| new mode 100755 | |
| index dcb152e..dba892f | |
| --- a/lib/http.js | |
| +++ b/lib/http.js | |
| @@ -88,11 +88,10 @@ IncomingMessage.prototype.resume = function () { | |
| IncomingMessage.prototype._addHeaderLine = function (field, value) { | |
| if (field in this.headers) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/lib/fs.js b/lib/fs.js | |
| old mode 100644 | |
| new mode 100755 | |
| index f9fc339..797f104 | |
| --- a/lib/fs.js | |
| +++ b/lib/fs.js | |
| @@ -162,6 +162,22 @@ exports.truncateSync = function (fd, len) { | |
| return fs.truncate(fd, len); | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| From 56758296f6763aeffdd321ba7127706ea946ac2a Mon Sep 17 00:00:00 2001 | |
| From: Andrew Johnston <[email protected]> | |
| Date: Mon, 22 Mar 2010 07:25:24 +0000 | |
| Subject: [PATCH] Added posix fsync and fdatasync to fs module | |
| --- | |
| lib/fs.js | 16 ++++++++++++++++ | |
| src/node_file.cc | 40 ++++++++++++++++++++++++++++++++++++++++ | |
| 2 files changed, 56 insertions(+), 0 deletions(-) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require("../common"); | |
| var path = require('path'); | |
| var fs = require('fs'); | |
| var got_error = false; | |
| var success_count = 0; | |
| var file = path.join(fixturesDir, "a.js"); | |
| fs.open(file, process.O_WRONLY | process.O_APPEND, 0777, function (err, fd) { | |
| try { | |
| if(err) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var buffer = require("buffer"); | |
| var gc = require("./gc"); | |
| var sys = require("sys"); | |
| function showmem() { | |
| var mem = process.memoryUsage(); | |
| sys.puts("RSS:" + parseInt(mem.rss/(1024*1024))); | |
| } | |
| var mb = 100; | |
| if(process.ARGV[2]) mb = process.ARGV[2]; |
OlderNewer