Merge branch 'master' into net2

This commit is contained in:
Ryan Dahl 2010-02-10 14:05:29 -08:00
Родитель b6edae5671 3337e9da1a
Коммит dc01587c6c
22 изменённых файлов: 1703 добавлений и 659 удалений

Просмотреть файл

@ -1,4 +1,23 @@
2010.02.03, Version 0.1.27
2010.02.09, Version 0.1.28
* Use Google's jsmin.py which can be used for evil.
* Add posix.truncate()
* Throw errors from server.listen()
* stdio bugfix (test by Mikeal Rogers)
* Module system refactor (Felix Geisendörfer, Blaine Cook)
* Add process.setuid(), getuid() (Michael Carter)
* sys.inspect refactor (Tim Caswell)
* Multipart library rewrite (isaacs)
2010.02.03, Version 0.1.27, 0cfa789cc530848725a8cb5595224e78ae7b9dd0
* Implemented __dirname (Felix Geisendörfer)

Просмотреть файл

@ -9,9 +9,6 @@ are:
This code is copyrighted by Marc Alexander Lehmann. Both are dually
licensed under MIT and GPL2.
- JSMin JavaScript minifier, located at tools/jsmin.py. This code is
copyrighted by Douglas Crockford and Baruch Even and has an MIT license.
- WAF build system, located at tools/waf. Copyrighted Thomas Nagy.
Released under an MIT license.

Просмотреть файл

@ -1,7 +1,7 @@
NODE(1)
=======
Ryan Dahl <ry@tinyclouds.org>
Version, 0.1.27, 2010.02.03
Version, 0.1.28, 2010.02.09
== NAME
@ -136,6 +136,9 @@ success code 0.
+process.cwd()+::
Returns the current working directory of the process.
+process.getuid(), process.setuid(id)+::
Gets/sets the user identity of the process. (See setuid(2).)
+process.chdir(directory)+::
Changes the current working directory of the process.
@ -205,8 +208,8 @@ Like +puts()+ but without the trailing new-line.
A synchronous output function. Will block the process and
output the string immediately to stdout.
+inspect(object)+ ::
Return a string representation of the +object+. (For debugging.)
+inspect(object, showHidden)+ ::
Return a string representation of the +object+. (For debugging.) If showHidden is true, then the object's non-enumerable properties will be shown too.
+exec(command)+::
Executes the command as a child process, buffers the output and returns it
@ -653,6 +656,11 @@ sys.puts("stats: " + JSON.stringify(stats));
- on success: no parameters.
- on error: no parameters.
+posix.truncate(fd, len)+ ::
See ftruncate(2).
- on success: no parameters.
- on error: no parameters.
+posix.stat(path)+ ::
See stat(2).
@ -1176,73 +1184,158 @@ After emitted no other events will be emitted on the response.
=== Multipart Parsing
A library to parse HTTP requests with +multipart/form-data+ is included with
A library to parse +multipart+ internet messages is included with
Node. To use it, +require("multipart")+.
+multipart.parse(options)+ ::
- on success: Returns an object where each key holds the value of one part of
the stream. +options+ can either be an instance of
+http.ServerRequest+ or an object containing a "boundary" and
an optional "data" key.
- on error: Returns an instanceof Error object. Right now only the request
content-type / boundary option is checked. The stream data itself
is not validated.
+multipart.parse(message)+ ::
Returns a multipart.Stream wrapper around a streaming message.
The message must contain a `headers` member, and may be either an
HTTP request object or a JSGI-style request object with either a
forEachable or String body.
+
See the Stream class below.
+multipart.cat(message)+ ::
Returns a promise.
- on success: Returns a multipart.Stream object representing the completed
message. The body of each part is saved on the `body` member.
- on error: Returns an instanceof Error object. This indicates
that the message was malformed in some way.
+
*Note*: This function saves the *entire* message into memory. As such,
it is ill-suited to parsing actual incoming messages from an HTTP request!
If a user uploads a very large file, then it may cause serious problems.
No checking is done to ensure that the file does not overload the memory.
Only use multipart.cat with known and trusted input!
==== +multipart.Stream+
The multipart.Stream class is a streaming parser wrapped around a message.
The Stream also contains the properties described for the +part+ objects below,
and is a reference to the top-level message.
===== Events
[cols="1,2,10",options="header"]
|=========================================================
|Event | Parameters | Notes
|+"partBegin"+ | +part+ | Emitted when a new part is found in the stream.
+part+ is a +part object+, described below.
|+"partEnd"+ | +part+ | Emitted when a part is done.
|+"body"+ | +chunk+ | Emitted when a chunk of the body is read.
|+"complete"+ | | Emitted when the end of the stream is reached.
|+"error"+ | +error+ | Emitted when a parse error is encountered. This
indicates that the message is malformed.
|=========================================================
===== Properties
+stream.part+::
The current part being processed. This is important, for instance, when responding
to the +body+ event.
+stream.isMultiPart+::
True if the stream is a multipart message. Generally this will be true, but non-multipart
messages will behave the same as a multipart message with a single part, and +isMultiPart+
will be set to +false+.
+stream.parts+::
An array of the parts contained within the message. Each is a +part+ object.
===== Methods
+stream.pause+::
If the underlying message supports pause and resume, then this will pause the stream.
+stream.resume+::
If the underlying message supports pause and resume, then this will resume the paused stream.
==== Part Objects
As it parses the message, the Stream object will create +Part+ objects.
===== Properties
+part.parent+::
The message that contains this part.
+part.headers+::
The headers object for this message.
+part.filename+::
The filename, if specified in the +content-disposition+ or +content-type+ header.
For uploads, downloads, and attachments, this is the intended filename for the
attached file.
+part.name+::
The name, if specified in the +content-disposition+ or +content-type+ header. For
+multipart/form-data+ messages, this is the name of the field that was posted, and the
body specifies the value.
+part.isMultiPart+::
True if this part is a multipart message.
+part.parts+::
Array of children contained within a multipart message, or falsey.
+part.boundary+::
For multipart messages, this is the boundary that separates subparts.
+part.type+::
For multipart messages, this is the multipart type specified in the +content-type+ header.
For example, a message with +content-type: multipart/form-data+ will have a +type+
property of +form-data+.
==== Example
Here is an example for parsing a +multipart/form-data+ request:
----------------------------------------
var multipart = require("multipart");
var stream = new multipart.Stream(options);
var parts = {};
stream.addListener("part", function (part) {
var buffer = "";
part.addListener("body", function(chunk) {
buffer = buffer + chunk;
var multipart = require("multipart"),
sys = require("sys"),
http = require("http");
http.createServer(function (req, res) {
var mp = multipart.parse(req),
fields = {},
name, filename;
mp.addListener("error", function (er) {
res.sendHeader(400, {"content-type":"text/plain"});
res.sendBody("You sent a bad message!\n"+er.message);
res.finish();
});
part.addListener("complete", function() {
parts[part.name] = buffer;
mp.addListener("partBegin", function (part) {
name = part.name;
filename = part.filename;
if (name) fields[name] = "";
});
});
stream.addListener("complete", function() {
// The parts object now contains all parts and data
mp.addListener("body", function (chunk) {
if (name) {
// just a demo. in reality, you'd probably
// want to sniff for base64 encoding, decode,
// and write the bytes to a file or something.
if (fields[name].length > 1024) return;
fields[name] += chunk;
}
});
mp.addListener("complete", function () {
var response = "You posted: \n" + sys.inspect(fields);
res.sendHeader(200, {
"content-type" : "text/plain",
"content-length" : response.length
});
res.sendBody(response);
res.finish();
})
});
----------------------------------------
==== Nested Multipart Messages
[cols="1,2,10",options="header"]
|=========================================================
|Event | Parameters | Notes
|+"part"+ | +part+ | Emitted when a new part is found in the stream.
+part+ is an instance of +multipart.Part+.
|+"complete"+ | | Emitted when the end of the stream is reached.
|=========================================================
+stream.bytesTotal+::
The amount of bytes this stream is expected to have.
+stream.bytesReceived+::
The amount of bytes received by this stream so far.
==== +multipart.Part+
[cols="1,2,10",options="header"]
|=========================================================
|Event | Parameters | Notes
|+"body"+ | +chunk+ | Emitted when a chunk of body is read.
|+"complete"+ | | Emitted when the end of the part is reached.
|=========================================================
+part.name+::
The field name of this part.
+part.filename+::
The filename of this part. Only set for file uploads.
Nested multipart parsing is supported. The +stream.part+ object always refers
to the current part. If +part.isMultiPart+ is set, then that part is a
multipart message, which contains other parts. You can inspect its +parts+
array to see the list of sub-parts, which may also be multipart, and contain
sub-parts.
=== TCP

Просмотреть файл

@ -97,9 +97,9 @@ server.listen(7000, "localhost");</pre>
<a href="http://github.com/ry/node/tree/master">git repo</a>
</p>
<p>
2010.02.03
2010.02.09
<a
href="http://s3.amazonaws.com/four.livejournal/20100203/node-v0.1.27.tar.gz">node-v0.1.27.tar.gz</a>
href="http://s3.amazonaws.com/four.livejournal/20100209/node-v0.1.28.tar.gz">node-v0.1.28.tar.gz</a>
</p>
<h2 id="build">Build</h2>

Просмотреть файл

@ -1,194 +1,408 @@
var sys = require("sys");
var events = require('events');
exports.parse = function(options) {
var promise = new events.Promise();
var sys = require("sys"),
events = require("events"),
wrapExpression = /^[ \t]+/,
multipartExpression = new RegExp(
"^multipart\/(" +
"mixed|rfc822|message|digest|alternative|" +
"related|report|signed|encrypted|form-data|" +
"x-mixed-replace|byteranges)", "i"),
boundaryExpression = /boundary=([^;]+)/i,
CR = "\r",
LF = "\n",
CRLF = CR+LF,
MAX_BUFFER_LENGTH = 16 * 1024,
try {
var stream = new exports.Stream(options);
} catch (e) {
process.nextTick(function() {
promise.emitError(e);
});
return promise;
}
// parser states.
s = 0,
S_NEW_PART = s++,
S_HEADER = s++,
S_BODY = s++;
var parts = {};
stream.addListener('part', function(part) {
var name = part.name;
var buffer = '';
exports.parse = parse;
exports.cat = cat;
exports.Stream = Stream;
part.addListener('body', function(chunk) {
buffer = buffer + chunk;
});
part.addListener('complete', function() {
parts[name] = buffer;
});
});
stream.addListener('complete', function() {
promise.emitSuccess(parts);
});
return promise;
// Parse a streaming message to a stream.
// If the message has a "body" and no "addListener", then
// just take it in and write() the body.
function parse (message) {
return new Stream(message);
};
exports.Stream = function(options) {
events.EventEmitter.call(this);
this.init(options);
// WARNING: DONT EVER USE THE CAT FUNCTION IN PRODUCTION WEBSITES!!
// It works pretty great, and it's a nice test function. But if
// you use this function to parse an HTTP request from a live web
// site, then you're essentially giving the world permission to
// rack up as much memory usage as they can manage. This function
// buffers the whole message, which is very convenient, but also
// very much the wrong thing to do in most cases.
function cat (message) {
var p = new (events.Promise),
stream = parse(message);
stream.files = {};
stream.fields = {};
stream.addListener("partBegin", function (part) {
if (part.filename) stream.files[part.filename] = part;
if (part.name) stream.fields[part.name] = part;
});
stream.addListener("body", function (chunk) {
stream.part.body = (stream.part.body || "") + chunk;
});
stream.addListener("error", function (e) { p.emitError(e) });
stream.addListener("complete", function () { p.emitSuccess(stream) });
return p;
};
sys.inherits(exports.Stream, events.EventEmitter);
var proto = exports.Stream.prototype;
proto.init = function(options) {
this.buffer = '';
this.bytesReceived = 0;
this.bytesTotal = 0;
this.part = null;
if ('headers' in options) {
var req = options, contentType = req.headers['content-type'];
if (!contentType) {
throw new Error('Content-Type header not set');
// events:
// "partBegin", "partEnd", "body", "complete"
// everything emits on the Stream directly.
// the stream's "parts" object is a nested collection of the header objects
// check the stream's "part" member to know what it's currently chewin on.
// this.part.parent refers to that part's containing message (which may be
// the stream itself)
// child messages inherit their parent's headers
// A non-multipart message looks just like a multipart message with a
// single part.
function Stream (message) {
var isMultiPart = multipartHeaders(message, this),
w = isMultiPart ? writer(this) : simpleWriter(this),
e = ender(this);
if (message.addListener) {
message.addListener("body", w);
message.addListener("complete", e);
if (message.pause && message.resume) {
this._pause = message;
}
if (!contentType.match(/^multipart\/form-data/i)) {
throw new Error('Content-Type is not multipart: "'+contentType+'"');
}
var boundary = contentType.match(/boundary=([^;]+)/i)
if (!boundary) {
throw new Error('No boundary in Content-Type header: "'+contentType+'"');
}
this.boundary = '--'+boundary[1];
this.bytesTotal = req.headers['content-length'];
} else if (message.body) {
var self = this;
req
.addListener('body', function(chunk) {
self.write(chunk);
})
.addListener('complete', function() {
self.emit('complete');
});
} else {
if (!options.boundary) {
throw new Error('No boundary option given');
if (message.body.pause && message.body.resume) {
this._pause = message.body;
}
this.boundary = options.boundary;
this.write(options.data || '');
if (message.body.addListener) {
message.body.addListener("data", w);
message.body.addListener("end", e);
} if (message.body.forEach) {
var p = message.body.forEach(w);
if (p && p.addCallback) p.addCallback(e);
else e();
} else {
// just write a string.
w(message.body);
e();
}
}
};
Stream.prototype = {
__proto__ : events.EventEmitter.prototype,
error : function (ex) {
this._error = ex;
this.emit("error", ex);
},
pause : function () {
if (this._pause) return this._pause.pause();
throw new Error("Unsupported");
},
resume : function () {
if (this._pause) return this._pause.resume();
throw new Error("Unsupported");
}
};
proto.write = function(chunk) {
this.bytesReceived = this.bytesReceived + chunk.length;
this.buffer = this.buffer + chunk;
// check the headers of the message. If it wants to be multipart,
// then we'll be returning true. Regardless, if supplied, then
// stream will get a headers object that inherits from message's.
// If no stream object is supplied, then this function just inspects
// the message's headers for multipartness, and modifies the message
// directly. This divergence is so that we can avoid modifying
// the original message when we want a wrapper, but still have the
// info available when it's one of our own objects.
function multipartHeaders (message, stream) {
var field, val, contentType, contentDisposition = "";
if (stream) stream.headers = {};
for (var h in message.headers) if (message.headers.hasOwnProperty(h)) {
val = message.headers[h];
field = h.toLowerCase();
if (stream) stream.headers[field] = val;
if (field === "content-type") {
contentType = val;
} else if (field === "content-disposition") {
contentDisposition = val;
}
}
while (this.buffer.length) {
var offset = this.buffer.indexOf(this.boundary);
if (!Array.isArray(contentDisposition)) {
contentDisposition = contentDisposition.split(",");
}
contentDisposition = contentDisposition[contentDisposition.length - 1];
if (offset === 0) {
this.buffer = this.buffer.substr(offset + this.boundary.length + 2);
} else if (offset == -1) {
if (this.buffer === "\r\n") {
this.buffer = '';
} else {
this.part = (this.part || new Part(this));
this.part.write(this.buffer);
this.buffer = [];
var mutate = (stream || message);
// Name and filename can come along with either content-disposition
// or content-type. Well-behaved agents use CD rather than CT,
// but sadly not all agents are well-behaved.
[contentDisposition, contentType].forEach(function (h) {
if (!h) return;
var cd = h.split(/; */);
cd.shift();
for (var i = 0, l = cd.length; i < l; i ++) {
var bit = cd[i].split("="),
name = bit.shift(),
val = stripQuotes(bit.join("="));
if (name === "filename" || name === "name") {
mutate[name] = val;
}
} else if (offset > 0) {
this.part = (this.part || new Part(this));
this.part.write(this.buffer.substr(0, offset - 2));
this.part.emit('complete');
this.part = new Part(this);
this.buffer = this.buffer.substr(offset + this.boundary.length + 2);
}
});
if (!contentType) {
return false;
}
// legacy
// TODO: Update this when/if jsgi-style headers are supported.
// this will keep working, but is less efficient than it could be.
if (!Array.isArray(contentType)) {
contentType = contentType.split(",");
}
contentType = contentType[contentType.length-1];
// make sure it's actually multipart.
var mpType = multipartExpression.exec(contentType);
if (!mpType) {
return false;
}
// make sure we have a boundary.
var boundary = boundaryExpression.exec(contentType);
if (!boundary) {
return false;
}
mutate.type = mpType[1];
mutate.boundary = "--" + boundary[1];
mutate.isMultiPart = true;
return true;
};
function Part(stream) {
events.EventEmitter.call(this);
this.headers = {};
this.name = null;
this.filename = null;
this.buffer = '';
this.bytesReceived = 0;
// Avoids turning Part into a circular JSON object
this.getStream = function() {
return stream;
function simpleWriter (stream) {
stream.part = stream;
stream.type = false;
var started = false;
return function (chunk) {
if (!started) {
stream.emit("partBegin", stream);
started = true;
}
stream.emit("body", chunk);
};
this._headersComplete = false;
}
sys.inherits(Part, events.EventEmitter);
function writer (stream) {
var buffer = "",
state = S_NEW_PART,
part = stream.part = stream;
stream.parts = [];
stream.parent = stream;
return function (chunk) {
if (stream._error) return;
// write to the buffer, and then process the buffer.
buffer += chunk;
while (buffer.length > 0) {
while (buffer.substr(0, 2) === CRLF) buffer = buffer.substr(2);
switch (state) {
case S_NEW_PART:
// part is a multipart message.
// we're either going to start reading a new part, or we're going to
// end the current part, depending on whether the boundary has -- at
// the end. either way, we expect --boundary right away.
var boundary = part.boundary,
len = boundary.length,
offset = buffer.indexOf(boundary);
if (offset === -1) {
if (buffer.length > MAX_BUFFER_LENGTH) {
return stream.error(new Error(
"Malformed: boundary not found at start of message"));
}
// keep waiting for it.
return;
}
if (offset > 0) {
return stream.error(Error("Malformed: data before the boundary"));
}
if (buffer.length < (len + 2)) {
// we'll need to see either -- or CRLF after the boundary.
// get it on the next pass.
return;
}
if (buffer.substr(len, 2) === "--") {
// this message is done.
// chomp off the boundary and crlf and move up
if (part !== stream) {
// wait to see the crlf, unless this is the top-level message.
if (buffer.length < (len + 4)) {
return;
}
if (buffer.substr(len+2, 2) !== CRLF) {
return stream.error(new Error(
"Malformed: CRLF not found after boundary"));
}
}
buffer = buffer.substr(len + 4);
stream.emit("partEnd", part);
stream.part = part = part.parent;
state = S_NEW_PART;
continue;
}
if (part !== stream) {
// wait to see the crlf, unless this is the top-level message.
if (buffer.length < (len + 2)) {
return;
}
if (buffer.substr(len, 2) !== CRLF) {
return stream.error(new Error(
"Malformed: CRLF not found after boundary"));
}
}
// walk past the crlf
buffer = buffer.substr(len + 2);
// mint a new child part, and start parsing headers.
stream.part = part = startPart(part);
state = S_HEADER;
continue;
case S_HEADER:
// just grab everything to the double crlf.
var headerEnd = buffer.indexOf(CRLF+CRLF);
if (headerEnd === -1) {
if (buffer.length > MAX_BUFFER_LENGTH) {
return stream.error(new Error(
"Malformed: header unreasonably long."));
}
return;
}
var headerString = buffer.substr(0, headerEnd);
// chomp off the header and the empty line.
buffer = buffer.substr(headerEnd + 4);
try {
parseHeaderString(part.headers, headerString);
} catch (ex) {
return stream.error(ex);
}
multipartHeaders(part);
Part.prototype.parsedHeaders = function() {
for (var header in this.headers) {
var parts = this.headers[header].split(/; ?/), parsedHeader = {};
for (var i = 0; i < parts.length; i++) {
var pair = parts[i].split('=');
if (pair.length < 2) {
// let the world know
stream.emit("partBegin", part);
if (part.isMultiPart) {
// it has a boundary and we're ready to grab parts out.
state = S_NEW_PART;
} else {
// it doesn't have a boundary, and is about to
// start spitting out body bits.
state = S_BODY;
}
continue;
case S_BODY:
// look for part.parent.boundary
var boundary = part.parent.boundary,
offset = buffer.indexOf(boundary);
if (offset === -1) {
// emit and wait for more data, but be careful, because
// we might only have half of the boundary so far.
// make sure to leave behind the boundary's length, so that we'll
// definitely get it next time if it's on its way.
var emittable = buffer.length - boundary.length;
if (buffer.substr(-1) === CR) emittable -= 1;
if (buffer.substr(-2) === CRLF) emittable -= 2;
if (emittable > 0) {
stream.emit("body", buffer.substr(0, emittable));
buffer = buffer.substr(emittable);
}
// haven't seen the boundary, so wait for more bytes.
return;
}
if (offset > 0) {
var emit = buffer.substr(0, offset);
if (emit.substr(-2) === CRLF) emit = emit.substr(0, emit.length-2);
if (emit) stream.emit("body", emit);
buffer = buffer.substr(offset);
}
// let em know we're done.
stream.emit("partEnd", part);
// now buffer starts with boundary.
if (buffer.substr(boundary.length, 2) === "--") {
// message end.
// parent ends, look for a new part in the grandparent.
stream.part = part = part.parent;
stream.emit("partEnd", part);
stream.part = part = part.parent;
state = S_NEW_PART;
buffer = buffer.substr(boundary.length + 4);
} else {
// another part coming for the parent message.
stream.part = part = part.parent;
state = S_NEW_PART;
}
continue;
}
var key = pair[0].toLowerCase(), val = pair[1] || '';
val = stripslashes(val).substr(1);
val = val.substr(0, val.length - 1);
parsedHeader[key] = val;
}
};
};
if (header == 'content-disposition') {
this.name = parsedHeader.name || null;
this.filename = parsedHeader.filename || null;
function parseHeaderString (headers, string) {
var lines = string.split(CRLF),
field, value, line;
for (var i = 0, l = lines.length; i < l; i ++) {
line = lines[i];
if (line.match(wrapExpression)) {
if (!field) {
throw new Error("Malformed. First header starts with whitespace.");
}
value += line.replace(wrapExpression, " ");
continue;
} else if (field) {
// now that we know it's not wrapping, put it on the headers obj.
affixHeader(headers, field, value);
}
line = line.split(":");
field = line.shift().toLowerCase();
if (!field) {
throw new Error("Malformed: improper field name.");
}
value = line.join(":").replace(/^\s+/, "");
}
// now affix the last field.
affixHeader(headers, field, value);
};
this.headers[header] = parsedHeader;
function affixHeader (headers, field, value) {
if (!headers.hasOwnProperty(field)) {
headers[field] = value;
} else if (Array.isArray(headers[field])) {
headers[field].push(value);
} else {
headers[field] = [headers[field], value];
}
};
Part.prototype.write = function(chunk) {
if (this._headersComplete) {
this.bytesReceived = this.bytesReceived + chunk.length;
this.emit('body', chunk);
return;
}
this.buffer = this.buffer + chunk;
while (this.buffer.length) {
var offset = this.buffer.indexOf("\r\n");
if (offset === 0) {
this._headersComplete = true;
this.parsedHeaders();
this.getStream().emit('part', this);
this.buffer = this.buffer.substr(2);
this.bytesReceived = this.bytesReceived + this.buffer.length;
this.emit('body', this.buffer);
this.buffer = '';
return;
} else if (offset > 0) {
var header = this.buffer.substr(0, offset).split(/: ?/);
this.headers[header[0].toLowerCase()] = header[1];
this.buffer = this.buffer.substr(offset+2);
} else if (offset === -1) {
return;
}
}
function startPart (parent) {
var part = {
headers : {},
parent : parent
};
parent.parts = parent.parts || [];
parent.parts.push(part);
return part;
};
function ender (stream) { return function () {
if (stream._error) return;
if (!stream.isMultiPart) stream.emit("partEnd", stream);
stream.emit("complete");
}};
function stripslashes(str) {
// + original by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
// + improved by: Ates Goral (http://magnetiq.com)
@ -198,20 +412,24 @@ function stripslashes(str) {
// + improved by: rezna
// + input by: Rick Waldron
// + reimplemented by: Brett Zamir (http://brett-zamir.me)
// * example 1: stripslashes('Kevin\'s code');
// * example 1: stripslashes("Kevin\'s code");
// * returns 1: "Kevin's code"
// * example 2: stripslashes('Kevin\\\'s code');
// * example 2: stripslashes("Kevin\\\'s code");
// * returns 2: "Kevin\'s code"
return (str+'').replace(/\\(.?)/g, function (s, n1) {
return (str+"").replace(/\\(.?)/g, function (s, n1) {
switch(n1) {
case '\\':
return '\\';
case '0':
return '\0';
case '':
return '';
case "\\":
return "\\";
case "0":
return "\0";
case "":
return "";
default:
return n1;
}
});
}
};
function stripQuotes (str) {
str = stripslashes(str);
return str.substr(1, str.length - 2);
};

Просмотреть файл

@ -21,9 +21,99 @@ exports.error = function (x) {
* in the best way possible given the different types.
*
* @param {Object} value The object to print out
* @param {Boolean} showHidden Flag that shows hidden (not enumerable) properties of objects.
*/
exports.inspect = function (value) {
return formatter(value, '', []);
exports.inspect = function (obj, showHidden) {
var seen = [];
function format(value) {
// Primitive types cannot have properties
switch (typeof value) {
case 'undefined': return 'undefined';
case 'string': return JSON.stringify(value);
case 'number': return '' + value;
case 'boolean': return '' + value;
}
// For some reason typeof null is "object", so special case here.
if (value === null) {
return 'null';
}
// Look up the keys of the object.
var keys = showHidden ? Object.getOwnPropertyNames(value).map(function (key) {
return '' + key;
}) : Object.keys(value);
var visible_keys = Object.keys(value);
// Functions without properties can be shortcutted.
if (typeof value === 'function' && keys.length === 0) {
if (value instanceof RegExp) {
return '' + value;
} else {
return '[Function]';
}
}
var base, type, braces;
// Determine the object type
if (value instanceof Array) {
type = 'Array';
braces = ["[", "]"];
} else {
type = 'Object';
braces = ["{", "}"];
}
// Make functions say that they are functions
if (typeof value === 'function') {
base = (value instanceof RegExp) ? ' ' + value : ' [Function]';
} else {
base = "";
}
seen.push(value);
if (keys.length === 0) {
return braces[0] + base + braces[1];
}
return braces[0] + base + "\n" + (keys.map(function (key) {
var name, str;
if (value.__lookupGetter__) {
if (value.__lookupGetter__(key)) {
if (value.__lookupSetter__(key)) {
str = "[Getter/Setter]";
} else {
str = "[Getter]";
}
} else {
if (value.__lookupSetter__(key)) {
str = "[Setter]";
}
}
}
if (visible_keys.indexOf(key) < 0) {
name = "[" + key + "]";
}
if (!str) {
if (seen.indexOf(value[key]) < 0) {
str = format(value[key]);
} else {
str = '[Circular]';
}
}
if (typeof name === 'undefined') {
if (type === 'Array' && key.match(/^\d+$/)) {
return str;
}
name = JSON.stringify('' + key);
}
return name + ": " + str;
}).join(",\n")).split("\n").map(function (line) {
return ' ' + line;
}).join('\n') + "\n" + braces[1];
}
return format(obj);
};
exports.p = function (x) {
@ -70,76 +160,3 @@ exports.exec = function (command) {
*/
exports.inherits = process.inherits;
/**
* A recursive function to format an object - used by inspect.
*
* @param {Object} value
* the value to format
* @param {String} indent
* the indent level of any nested objects, since they are formatted over
* more than one line
* @param {Array} parents
* contains all objects above the current one in the heirachy, used to
* prevent getting stuck in a loop on circular references
*/
var formatter = function(value, indent, parents) {
switch(typeof(value)) {
case 'string': return JSON.stringify(value);
case 'number': return '' + value;
case 'function': return '[Function]';
case 'boolean': return '' + value;
case 'undefined': return 'undefined';
case 'object':
if (value == null) return 'null';
if (parents.indexOf(value) >= 0) return '[Circular]';
parents.push(value);
if (value instanceof Array && Object.keys(value).length === value.length) {
return formatObject(value, indent, parents, '[]', function(x, f) {
return f(value[x]);
});
} else {
return formatObject(value, indent, parents, '{}', function(x, f) {
var child;
if (value.__lookupGetter__(x)) {
if (value.__lookupSetter__(x)) {
child = "[Getter/Setter]";
} else {
child = "[Getter]";
}
} else {
if (value.__lookupSetter__(x)) {
child = "[Setter]";
} else {
child = f(value[x]);
}
}
return f(x) + ': ' + child;
});
}
return buffer;
default:
throw('inspect unimplemented for ' + typeof(value));
}
}
/**
* Helper function for formatting either an array or an object, used internally by formatter
*/
var formatObject = function(obj, indent, parents, parenthesis, entryFormatter) {
var buffer = parenthesis[0];
var values = [];
var x;
var localFormatter = function(value) {
return formatter(value, indent + ' ', parents);
};
for (x in obj) {
values.push(indent + ' ' + entryFormatter(x, localFormatter));
}
if (values.length > 0) {
buffer += "\n" + values.join(",\n") + "\n" + indent;
}
buffer += parenthesis[1];
return buffer;
}

Просмотреть файл

@ -9,6 +9,8 @@
#include <unistd.h>
#include <errno.h>
#include <dlfcn.h> /* dlopen(), dlsym() */
#include <sys/types.h>
#include <unistd.h> /* setuid, getuid */
#include <node_buffer.h>
#include <node_io_watcher.h>
@ -468,12 +470,37 @@ static Handle<Value> Umask(const Arguments& args){
return scope.Close(Uint32::New(old));
}
static Handle<Value> GetUid(const Arguments& args) {
HandleScope scope;
int uid = getuid();
return scope.Close(Integer::New(uid));
}
static Handle<Value> SetUid(const Arguments& args) {
HandleScope scope;
if (args.Length() < 1) {
return ThrowException(Exception::Error(
String::New("setuid requires 1 argument")));
}
Local<Integer> given_uid = args[0]->ToInteger();
int uid = given_uid->Int32Value();
int result;
if ((result = setuid(uid)) != 0) {
return ThrowException(Exception::Error(String::New(strerror(errno))));
}
return Undefined();
}
v8::Handle<v8::Value> Exit(const v8::Arguments& args) {
int r = 0;
if (args.Length() > 0)
r = args[0]->IntegerValue();
HandleScope scope;
fflush(stderr);
exit(r);
Stdio::Flush();
exit(args[0]->IntegerValue());
return Undefined();
}
@ -958,6 +985,8 @@ static void Load(int argc, char *argv[]) {
NODE_SET_METHOD(process, "reallyExit", Exit);
NODE_SET_METHOD(process, "chdir", Chdir);
NODE_SET_METHOD(process, "cwd", Cwd);
NODE_SET_METHOD(process, "getuid", GetUid);
NODE_SET_METHOD(process, "setuid", SetUid);
NODE_SET_METHOD(process, "umask", Umask);
NODE_SET_METHOD(process, "dlopen", DLOpen);
NODE_SET_METHOD(process, "kill", Kill);
@ -1170,6 +1199,8 @@ int main(int argc, char *argv[]) {
// so your next reading stop should be node::Load()!
node::Load(argc, argv);
node::Stdio::Flush();
#ifndef NDEBUG
// Clean up.
context.Dispose();

Просмотреть файл

@ -571,6 +571,16 @@ var posixModule = createInternalModule("posix", function (exports) {
return process.fs.rename(oldPath, newPath);
};
exports.truncate = function (fd, len) {
var promise = new events.Promise();
process.fs.truncate(fd, len, callback(promise));
return promise;
};
exports.truncateSync = function (fd, len) {
return process.fs.truncate(fd, len);
};
exports.rmdir = function (path) {
var promise = new events.Promise();
process.fs.rmdir(path, callback(promise));

Просмотреть файл

@ -51,6 +51,7 @@ static int After(eio_req *req) {
case EIO_UNLINK:
case EIO_RMDIR:
case EIO_MKDIR:
case EIO_FTRUNCATE:
argc = 0;
break;
@ -193,6 +194,25 @@ static Handle<Value> Rename(const Arguments& args) {
}
}
static Handle<Value> Truncate(const Arguments& args) {
HandleScope scope;
if (args.Length() < 2 || !args[0]->IsInt32()) {
return THROW_BAD_ARGS;
}
int fd = args[0]->Int32Value();
off_t len = args[1]->Uint32Value();
if (args[2]->IsFunction()) {
ASYNC_CALL(ftruncate, args[2], fd, len)
} else {
int ret = ftruncate(fd, len);
if (ret != 0) return ThrowException(errno_exception(errno));
return Undefined();
}
}
static Handle<Value> Unlink(const Arguments& args) {
HandleScope scope;
@ -403,6 +423,7 @@ void File::Initialize(Handle<Object> target) {
NODE_SET_METHOD(target, "open", Open);
NODE_SET_METHOD(target, "read", Read);
NODE_SET_METHOD(target, "rename", Rename);
NODE_SET_METHOD(target, "truncate", Truncate);
NODE_SET_METHOD(target, "rmdir", RMDir);
NODE_SET_METHOD(target, "mkdir", MKDir);
NODE_SET_METHOD(target, "sendfile", SendFile);

Просмотреть файл

@ -821,6 +821,14 @@ Handle<Value> Server::Listen(const Arguments& args) {
if (address_list) freeaddrinfo(address_list);
if (server->server_.errorno) {
Local<Value> e = Exception::Error(
String::NewSymbol(strerror(server->server_.errorno)));
Local<Object> obj = e->ToObject();
obj->Set(String::NewSymbol("errno"), Integer::New(server->server_.errorno));
return ThrowException(e);
}
return Undefined();
}

Просмотреть файл

@ -4,6 +4,8 @@
#include <unistd.h>
#include <fcntl.h>
#include <string.h>
#include <errno.h>
using namespace v8;
using namespace node;
@ -42,6 +44,15 @@ EmitClose (void)
emit->Call(stdio, 1, argv);
}
static inline Local<Value> errno_exception(int errorno) {
Local<Value> e = Exception::Error(String::NewSymbol(strerror(errorno)));
Local<Object> obj = e->ToObject();
obj->Set(String::NewSymbol("errno"), Integer::New(errorno));
return e;
}
/* STDERR IS ALWAY SYNC */
static Handle<Value>
WriteError (const Arguments& args)
@ -53,8 +64,19 @@ WriteError (const Arguments& args)
String::Utf8Value msg(args[0]->ToString());
fprintf(stderr, "%s", *msg);
fflush(stderr);
ssize_t r;
size_t written = 0;
while (written < msg.length()) {
r = write(STDERR_FILENO, (*msg) + written, msg.length() - written);
if (r < 0) {
if (errno == EAGAIN || errno == EIO) {
usleep(100);
continue;
}
return ThrowException(errno_exception(errno));
}
written += (size_t)r;
}
return Undefined();
}
@ -197,6 +219,19 @@ Close (const Arguments& args)
return Undefined();
}
void Stdio::Flush() {
if (stdout_fd >= 0) {
close(stdout_fd);
stdout_fd = -1;
}
if (stdout_coupling) {
coupling_join(stdout_coupling);
coupling_destroy(stdout_coupling);
stdout_coupling = NULL;
}
}
void
Stdio::Initialize (v8::Handle<v8::Object> target)
{

Просмотреть файл

@ -11,6 +11,7 @@ namespace node {
class Stdio {
public:
static void Initialize (v8::Handle<v8::Object> target);
static void Flush ();
};
} // namespace node

Просмотреть файл

@ -1,11 +1,721 @@
exports.reply = ["--AaB03x\r",
"content-disposition: form-data; name=\"reply\"\r",
"\r",
"yes\r",
"--AaB03x\r",
"content-disposition: form-data; name=\"fileupload\"; filename=\"dj.jpg\"\r",
"Content-Type: image/jpeg\r",
"Content-Transfer-Encoding: base64\r",
"\r",
"/9j/4AAQSkZJRgABAQAAAQABAAD//gA+Q1JFQVRPUjogZ2QtanBlZyB2MS4wICh1c2luZyBJSkcg\r",
"--AaB03x--\r\n"].join("\n");
// each message contains a header, body, and a list of the parts that are
// expected. Any properties in the expected objects will be matched against
// the parsed parts.
var messages = exports.messages = [];
var bad = exports.badMessages = [];
var longString = "";
for (var i = 0; i < (16*1024); i ++) longString += Math.random();
// content before the first boundary
bad.push({
headers : { "Content-Type":"multipart/mixed; boundary=boundary" },
body : "blerg\r\n--boundary\r\nblarggghhh"
});
// no boundary
bad.push({
headers : { "Content-Type":"multipart/mixed; boundary=boundary" },
body : longString
});
// header unreasonably long.
bad.push({
headers : { "Content-Type":"multipart/mixed; boundary=boundary" },
body : "--boundary\r\ncontent-type: "+longString+"\r\n"+longString
});
// CRLF not found after boundary
bad.push({
headers : { "Content-Type":"multipart/mixed; boundary=boundary" },
body : "--boundary"+longString
});
// start first header with whitespace.
bad.push({
headers : { "Content-Type":"multipart/mixed; boundary=boundary" },
body : "--boundary\r\n fail: blahrg\r\n\r\n"+longString
});
// The comments in this first test case tell a story about what the parser is
// doing at each step. If you mean to touch the code, it's best to read through
// this test case first so that you know what you're getting into.
messages.push({
expect : [
{ type : "mixed", boundary : "--inner1" },
{ type : "mixed", boundary : "--inner2" },
{ filename : "hello.txt" },
{ filename : "hello2.txt" },
{ type : "mixed", boundary : "--inner3" },
{ filename : "hello3.txt" },
{ filename : "hello4.txt" },
{ filename : "hello-outer.txt" }
],
headers : {
"Content-Type":"multipart/mixed; boundary=outer"
}, body : [
// s=new part, part = stream, part.boundary=--outer
"--outer",// chomp to here, because it matches the boundary.
// mint a new part without a boundary, parent=old part, set state to header
"Content-Type: multipart/mixed; boundary=inner1",// move along
"", // found the end of the header. chomp to here, parse the headers onto
// the current part. Once we do that, we know that the current part
// is multipart, and has a boundary of --inner1
// s=new part, part = --inner1
"--inner1", // chomp to here.
// mint a new part without a boundary, parent=--inner1, s=header
"Content-type: multipart/mixed; boundary=inner2", // move along
"", // again, found the end of the header. chomp to here, parse headers
// onto the newly minted part. Then find out that this part has a
// boundary of --inner2.
// s=new part, part=--inner2
"--inner2", // chomp to here.
// mint a new part without a boundary, parent=--inner2
"Content-type: text/plain", // move along
"content-disposition: inline; filename=\"hello.txt\"", // move along
"", // chomp to here. found end of header. parse headers
// then we know that it's not multipart, so we'll be looking for
// the parent's boundary and emitting body bits.
// also, we can set part.filename to "hello.txt"
// s=body, part=hello.txt
"hello, world", // chomp, emit the body, looking for parent-boundary
"--inner2", // found parent.boundary. leave it on the buffer, and
// set part=part.parent, s=new part
// on the next pass, we'll chomp to here, mint a new part
// without a boundary, set s=header
"content-type: text/plain", // header...
"content-disposition: inline; filename=\"hello2.txt\"", // header...
"", // chomp to here, parse header onto the current part.
// since it's not multipart, we're looking for parent.boundary
"hello to the world", // body, looking for parent.boundary=--inner
"--inner2--", // found parent.boundary. In this case, we have the
// trailing --, indicating that no more parts are coming
// for this set. We need to back up to the grandparent,
// and then do the new part bit. Chomp off the --inner2--
// s=new part, part=part.parent.parent=--inner1
"--inner1", // chomp to here, because this is part.boundary
// mint a new part without a boundary
// s=header, part = (new)
"Content-type: multipart/mixed; boundary=inner3", // header...
"", // chomp to here, parse headers onto the new part.
// it's multipart, so set the boundary=--inner3,
// s=new part, part = --inner3
"--inner3", // chomp to here. mint a new part with no boundary, parse headers
"Content-type: text/plain", // header
"content-disposition: inline; filename=\"hello3.txt\"", // header
"", // end of header. parse headers onto part, whereupon we find that it is
// not multipart, and has a filename of hello3.txt.
// s=body, part=hello3.txt, looking for part.parent.boundary=--inner3
"hello, free the world", // body...
"--inner3", // found parent.boundary, and it's not the end.
// s = new part, part = part.parent
// next pass:
// mint a new part without a boundary, s=header
"content-type: text/plain", // header
"content-disposition: inline; filename=\"hello4.txt\"", // header
"", // chomp to here, parse headers on to boundaryless part.
// s=body, part = hello4.txt
"hello for the world", // body, looking for part.parent.boundary=--inner3
"--inner3--", // found parent.boundary, and it's the end
// chomp this off the buffer, part = part.parent.parent=--inner1
// s = new part
"--inner1", // chomp to here, because part.boundary = --inner1
// mint a new boundariless part, s = header
"Content-type: text/plain", // header...
"content-disposition: inline; filename=\"hello-outer.txt\"", // header...
"", // chomp to here, parse headers onto the current part.
// has no boundary, so we're gonna go into body mode.
// s = body, boundary = parent.boundary = --inner1, part = hello-outer.txt
"hello, outer world", // body, looking for parent.boundary=--inner1
"--inner1--", // found the parent.boundary, and it's the end.
// chomp off the --inner1--, part = part.parent.parent, s = new part
"--outer--" // we're looking for a new part, but found the ending.
// chomp off the --outer--, part = part.parent, s = new part.
].join("\r\n")
});
messages.push({
headers : {
"Content-Type": "multipart/form-data; boundary=AaB03x",
},
body : [
"--AaB03x",
"content-disposition: form-data; name=\"reply\"",
"",
"yes",
"--AaB03x",
"content-disposition: form-data; name=\"fileupload\"; filename=\"dj.jpg\"",
"Content-Type: image/jpeg",
"Content-Transfer-Encoding: base64",
"",
"/9j/4AAQSkZJRgABAQAAAQABAAD//gA+Q1JFQVRPUjogZ2QtanBlZyB2MS4wICh1c2luZyBJSkcg",
"--AaB03x--", ""
].join("\r\n"),
expect : [
{ name : "reply" },
{ name : "fileupload", filename : "dj.jpg" }
]
});
// one that's not multipart, just for kicks.
// verify that it ducks as a multipart message with one part.
messages.push({
headers: { "content-type" : "text/plain" },
body : "Hello, world!",
// not much to say about this one, since it's just
// validating that a part was created, not that it has
// any particular properties.
expect : [{}]
});
// An actual email message sent from felixge to isaacs.
// Addresses and signatures obscured, but the unicycle pic is preserved for posterity.
messages.push({
headers: {
// TODO: When node's parser supports header-wrapping, these should actually be wrapped,
// because that's how they appear in real life.
"Delivered-To":"isaacs...@gmail.com",
"Received":"by 10.142.240.14 with SMTP id n14cs252101wfh; Wed, 3 Feb 2010 14:24:08 -0800 (PST)",
"Received":"by 10.223.4.139 with SMTP id 11mr194455far.61.1265235847416; Wed, 03 Feb 2010 14:24:07 -0800 (PST)",
"Return-Path":"<isaacs+caf_=isaacs...=gmail.com@izs.me>",
"Received":"from mail-fx0-f219.google.com (mail-fx0-f219.google.com [209.85.220.219]) by mx.google.com with ESMTP id d13si118373fka.17.2010.02.03.14.24.05; Wed, 03 Feb 2010 14:24:06 -0800 (PST)",
"Received-SPF":"neutral (google.com: 209.85.220.219 is neither permitted nor denied by best guess record for domain of isaacs+caf_=isaacs...=gmail.com@izs.me) client-ip=209.85.220.219;",
"Authentication-Results":"mx.google.com; spf=neutral (google.com: 209.85.220.219 is neither permitted nor denied by best guess record for domain of isaacs+caf_=isaacs...=gmail.com@izs.me) smtp.mail=isaacs+caf_=isaacs...=gmail.com@izs.me; dkim=pass (test mode) header.i=@gmail.com",
"Received":"by mail-fx0-f219.google.com with SMTP id 19so626487fxm.25 for <isaacs...@gmail.com>; Wed, 03 Feb 2010 14:24:05 -0800 (PST)",
"Received":"by 10.216.91.15 with SMTP id g15mr146196wef.24.1265235845694; Wed, 03 Feb 2010 14:24:05 -0800 (PST)",
"X-Forwarded-To":"isaacs...@gmail.com",
"X-Forwarded-For":"isaacs@izs.me isaacs...@gmail.com",
"Delivered-To":"i@izs.me",
"Received":"by 10.216.12.146 with SMTP id 18cs33122wez; Wed, 3 Feb 2010 14:24:00 -0800 (PST)",
"Received":"by 10.213.97.28 with SMTP id j28mr2627124ebn.82.1265235838786; Wed, 03 Feb 2010 14:23:58 -0800 (PST)",
"Return-Path":"<hai...@gmail.com>",
"Received":"from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.25]) by mx.google.com with ESMTP id 4si11869270ewy.8.2010.02.03.14.23.54; Wed, 03 Feb 2010 14:23:57 -0800 (PST)",
"Received-SPF":"pass (google.com: domain of hai...@gmail.com designates 74.125.78.25 as permitted sender) client-ip=74.125.78.25;",
"Received":"by ey-out-2122.google.com with SMTP id d26so431288eyd.17 for <i@izs.me>; Wed, 03 Feb 2010 14:23:54 -0800 (PST)",
"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:from:date :x-google-sender-auth:message-id:subject:to:content-type; bh=JXfvYIRzerOieADuqMPGlnlFbIGyPuTssL5icEtSLWw=; b=QDzgOCEbYk8cEdBe+HYx/MJrTWmZyx4qENADOcnnn9Xuk1Q6e/c7b3UsvLf/sMoYrG z96RQhUVOKi9IAzkQhNnOCWDuF1KNxtFnCGhEXMARXBM3qjXe3QmAqXNhJrI0E9bMeme d5aX5GMrz5mIark462cDsTmrFgaYE6JtwASho=",
"DomainKey-Signature":"a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:from:date:x-google-sender-auth:message-id :subject:to:content-type; b=VYkN8OeNNJyxAseCAPH8u2aBfGmZaFesmieoWEDymQ1DsWg/aXbaWt4JGQlefIfmMK hOXd4EN2/iEix10aWDzKpuUV9gU9Wykm93t3pxD7BCz50Kagwp7NVyDJQLK0H5JSNEU/ IVRp90kKNBsb3v76vPsQydi9awLh/jYrFQVMY=",
"MIME-Version":"1.0",
"Sender":"hai...@gmail.com",
"Received":"by 10.216.86.201 with SMTP id w51mr154937wee.8.1265235834101; Wed, 03 Feb 2010 14:23:54 -0800 (PST)",
"From":"Felix Geisendoerfer <f...@debuggable.com>",
"Date":"Wed, 3 Feb 2010 23:23:34 +0100",
"X-Google-Sender-Auth":"0217977a92fcbed0",
"Message-ID":"<56dbc1211002031423g750ba93fs4a2f22ce22431590@mail.gmail.com>",
"Subject":"Me on my unicycle",
"To":"i@izs.me",
"Content-Type":"multipart/mixed; boundary=0016e6d99d0572dfaf047eb9ac2e",
},
expect : [
{ type : "alternative", boundary : "--0016e6d99d0572dfa5047eb9ac2c" },
{}, // the first bit, text/plain
{}, // the second bit, text/html
{ name : "unicycle.jpg", filename : "unicycle.jpg" }
],
body : [
"--0016e6d99d0572dfaf047eb9ac2e", // beginpart->header
"Content-Type: multipart/alternative; boundary=0016e6d99d0572dfa5047eb9ac2c", // headers. isMultipart
"", // bodybegin->beginpart
"--0016e6d99d0572dfa5047eb9ac2c",//header
"Content-Type: text/plain; charset=ISO-8859-1",
"",//bodybegin->body
"*This was 4 years ago, I miss riding my unicycle !*",
"",
"-- fg",
"",
"--0016e6d99d0572dfa5047eb9ac2c", //partend->partbegin
"Content-Type: text/html; charset=ISO-8859-1",
"",
"<b><font class=\"Apple-style-span\" color=\"#CC0000\">This was 4 years ago, I miss riding my <span class=\"Apple-style-span\" style=\"background-color: rgb(0, 0, 0);\">unicycle</span> !</font></b><div><br clear=\"all\">-- fg<br><br>",
"",
"",
"</div>",
"",
"--0016e6d99d0572dfa5047eb9ac2c--",//partend, walk up tree-->partbegin
"--0016e6d99d0572dfaf047eb9ac2e",//beginpart->header
"Content-Type: image/jpeg; name=\"unicycle.jpg\"",//header
"Content-Disposition: attachment; filename=\"unicycle.jpg\"",//header
"Content-Transfer-Encoding: base64",//header
"X-Attachment-Id: f_g58opqah0",//header
"",//bodybegin->body
"/9j/4AAQSkZJRgABAQEASABIAAD/4gUoSUNDX1BST0ZJTEUAAQEAAAUYYXBwbAIgAABzY25yUkdC",//bodybodybody
"IFhZWiAH0wAHAAEAAAAAAABhY3NwQVBQTAAAAABhcHBsAAAAAAAAAAAAAAAAAAAAAAAA9tYAAQAA",//bodybodybody
"AADTLWFwcGwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAty",//bodybodybody
"WFlaAAABCAAAABRnWFlaAAABHAAAABRiWFlaAAABMAAAABR3dHB0AAABRAAAABRjaGFkAAABWAAA",//bodybodybody
"ACxyVFJDAAABhAAAAA5nVFJDAAABhAAAAA5iVFJDAAABhAAAAA5kZXNjAAABlAAAAD1jcHJ0AAAE",
"1AAAAEFkc2NtAAAB1AAAAv5YWVogAAAAAAAAdEsAAD4dAAADy1hZWiAAAAAAAABacwAArKYAABcm",
"WFlaIAAAAAAAACgYAAAVVwAAuDNYWVogAAAAAAAA81IAAQAAAAEWz3NmMzIAAAAAAAEMQgAABd7/",
"//MmAAAHkgAA/ZH///ui///9owAAA9wAAMBsY3VydgAAAAAAAAABAjMAAGRlc2MAAAAAAAAAE0Nh",
"bWVyYSBSR0IgUHJvZmlsZQAAAAAAAAAAAAAAE0NhbWVyYSBSR0IgUHJvZmlsZQAAAABtbHVjAAAA",
"AAAAAA8AAAAMZW5VUwAAACQAAAKeZXNFUwAAACwAAAFMZGFESwAAADQAAAHaZGVERQAAACwAAAGY",
"ZmlGSQAAACgAAADEZnJGVQAAADwAAALCaXRJVAAAACwAAAJybmxOTAAAACQAAAIObm9OTwAAACAA",
"AAF4cHRCUgAAACgAAAJKc3ZTRQAAACoAAADsamFKUAAAABwAAAEWa29LUgAAABgAAAIyemhUVwA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V61pfs7Tya14U1uw1by9QtbaVfISeNWKbuuCRn9a7/4paVp2jfDx",
"tQ0u0hsrwXCL5kY7E8jHSvapcUUJ4z6o6bve1+hxVsoqU4cymeSvYw5UlAcNRUNhczT226V97cck",
"CivqJ00meTzNH//Z",
"--0016e6d99d0572dfaf047eb9ac2e--",//partend, then complete
""
].join("\r\n")
});

Просмотреть файл

@ -0,0 +1,10 @@
process.mixin(require("../common"));
var n = parseInt(process.argv[2]);
var s = "";
for (var i = 0; i < n-1; i++) {
s += 'c';
}
puts(s); // \n is the nth char.

Просмотреть файл

@ -0,0 +1,32 @@
process.mixin(require("./common"));
var events = require('events');
var callbacks_called = [ ];
var e = new events.EventEmitter();
function callback1() {
callbacks_called.push("callback1");
e.addListener("foo", callback2);
e.removeListener("foo", callback1);
}
function callback2() {
callbacks_called.push("callback2");
e.removeListener("foo", callback2);
}
e.addListener("foo", callback1);
assert.equal(1, e.listeners("foo").length);
e.emit("foo");
assert.equal(1, e.listeners("foo").length);
assert.deepEqual(["callback1"], callbacks_called);
e.emit("foo");
assert.equal(0, e.listeners("foo").length);
assert.deepEqual(["callback1", "callback2"], callbacks_called);
e.emit("foo");
assert.equal(0, e.listeners("foo").length);
assert.deepEqual(["callback1", "callback2"], callbacks_called);

Просмотреть файл

@ -1,129 +1,123 @@
process.mixin(require("./common"));
http = require("http");
var
var http = require("http"),
multipart = require("multipart"),
sys = require("sys"),
PORT = 8222,
multipart = require('multipart'),
fixture = require('./fixtures/multipart'),
requests = 0,
badRequests = 0,
partsReceived = 0,
partsComplete = 0,
respond = function(res, text) {
requests++;
if (requests == 5) {
server.close();
fixture = require("./fixtures/multipart"),
events = require("events"),
testPart = function (expect, part) {
if (!expect) {
throw new Error("Got more parts than expected: "+
JSON.stringify(part.headers));
}
for (var i in expect) {
assert.equal(expect[i], part[i]);
}
res.sendHeader(200, {"Content-Type": "text/plain"});
res.sendBody(text);
res.finish();
};
var server = http.createServer(function(req, res) {
if (req.headers['x-use-simple-api']) {
multipart.parse(req)
.addCallback(function() {
respond(res, 'thanks');
})
.addErrback(function() {
badRequests++;
respond(res, 'no thanks');
});
var emails = fixture.messages.slice(0),
chunkSize = 1, // set to minimum to forcibly expose boundary conditions.
// in a real scenario, this would be much much bigger.
firstPart = new (events.Promise);
// test streaming messages through directly, as if they were in a file or something.
(function testEmails () {
var email = emails.pop(),
curr = 0;
if (!email) {
firstPart.emitSuccess();
return;
}
var expect = email.expect;
var message = new (events.EventEmitter);
message.headers = email.headers;
try {
var stream = new multipart.Stream(req);
} catch (e) {
badRequests++;
respond(res, 'no thanks');
return;
}
var parts = {};
stream.addListener('part', function(part) {
partsReceived++;
var name = part.name;
if (partsReceived == 1) {
assert.equal('reply', name);
} else if (partsReceived == 2) {
assert.equal('fileupload', name);
var mp = multipart.parse(message);
mp.addListener("partBegin", function (part) {
testPart(email.expect[curr ++], part);
});
mp.addListener("complete", function () {
process.nextTick(testEmails);
});
// stream it through in chunks.
var emailBody = email.body;
process.nextTick(function s () {
if (emailBody) {
message.emit("body", emailBody.substr(0, chunkSize));
emailBody = emailBody.substr(chunkSize);
process.nextTick(s);
} else {
message.emit("complete");
}
parts[name] = '';
part.addListener('body', function(chunk) {
parts[name] += chunk;
});
part.addListener('complete', function(chunk) {
assert.equal(0, part.buffer.length);
if (partsReceived == 1) {
assert.equal('yes', parts[name]);
} else if (partsReceived == 2) {
assert.equal(
'/9j/4AAQSkZJRgABAQAAAQABAAD//gA+Q1JFQVRPUjogZ2QtanBlZyB2MS4wICh1c2luZyBJSkcg',
parts[name]
);
}
partsComplete++;
});
});
})();
stream.addListener('complete', function() {
respond(res, 'thanks');
});
});
// run good HTTP messages test after previous test ends.
var secondPart = new (events.Promise),
server = http.createServer(function (req, res) {
var mp = multipart.parse(req),
curr = 0;
req.setBodyEncoding("binary");
if (req.url !== "/bad") {
mp.addListener("partBegin", function (part) {
testPart(message.expect[curr ++], part);
});
}
mp.addListener("error", function (er) {
res.sendHeader(400, {});
res.sendBody("bad");
res.finish();
});
mp.addListener("complete", function () {
res.sendHeader(200, {});
res.sendBody("ok");
res.finish();
});
}),
message,
client = http.createClient(PORT);
server.listen(PORT);
var client = http.createClient(PORT);
var request = client.request('POST', '/', {
'Content-Type': 'multipart/form-data; boundary=AaB03x',
'Content-Length': fixture.reply.length
// could dry these two up a bit.
firstPart.addCallback(function testGoodMessages () {
var httpMessages = fixture.messages.slice(0);
process.nextTick(function testHTTP () {
message = httpMessages.pop();
if (!message) {
secondPart.emitSuccess();
return;
}
var req = client.request("POST", "/", message.headers);
req.sendBody(message.body, "binary");
req.finish(function (res) {
var buff = "";
res.addListener("body", function (chunk) { buff += chunk });
res.addListener("complete", function () {
assert.equal(buff, "ok");
process.nextTick(testHTTP);
});
});
});
});
request.sendBody(fixture.reply, 'binary');
request.finish();
var simpleRequest = client.request('POST', '/', {
'X-Use-Simple-Api': 'yes',
'Content-Type': 'multipart/form-data; boundary=AaB03x',
'Content-Length': fixture.reply.length
});
simpleRequest.sendBody(fixture.reply, 'binary');
simpleRequest.finish();
var badRequest = client.request('POST', '/', {
'Content-Type': 'invalid!',
'Content-Length': fixture.reply.length
});
badRequest.sendBody(fixture.reply, 'binary');
badRequest.finish();
var simpleBadRequest = client.request('POST', '/', {
'X-Use-Simple-Api': 'yes',
'Content-Type': 'something',
'Content-Length': fixture.reply.length
});
simpleBadRequest.sendBody(fixture.reply, 'binary');
simpleBadRequest.finish();
var requestWithCharset = client.request('POST', '/', {
'X-Use-Simple-Api': 'yes',
'Content-Type': 'multipart/form-data; charset=utf-8; boundary=AaB03x',
'Content-Length': fixture.reply.length
});
requestWithCharset.sendBody(fixture.reply, 'binary');
requestWithCharset.finish();
process.addListener('exit', function() {
puts("done");
assert.equal(2, partsComplete);
assert.equal(2, partsReceived);
assert.equal(2, badRequests);
secondPart.addCallback(function testBadMessages () {
var httpMessages = fixture.badMessages.slice(0);
process.nextTick(function testHTTP () {
message = httpMessages.pop();
if (!message) {
server.close()
return;
}
var req = client.request("POST", "/bad", message.headers);
req.sendBody(message.body, "binary");
req.finish(function (res) {
var buff = "";
res.addListener("body", function (chunk) { buff += chunk });
res.addListener("complete", function () {
assert.equal(buff, "bad");
process.nextTick(testHTTP);
});
});
});
});

Просмотреть файл

@ -13,6 +13,7 @@ promise.addCallback(function (files) {
, 'echo.js'
, 'multipart.js'
, 'nested-index'
, 'print-chars.js'
, 'test_ca.pem'
, 'test_cert.pem'
, 'test_key.pem'

Просмотреть файл

@ -0,0 +1,28 @@
process.mixin(require("./common"));
var sub = path.join(fixturesDir, 'print-chars.js');
n = 100000;
var child = process.createChildProcess(process.argv[0], [sub, n]);
var count = 0;
child.addListener("error", function (data){
if (data) {
puts("parent stderr: " + data);
assert.ok(false);
}
});
child.addListener("output", function (data){
if (data) {
count += data.length;
puts(count);
}
});
child.addListener("exit", function (data) {
assert.equal(n, count);
puts("okay");
});

Просмотреть файл

@ -9,6 +9,7 @@ assert.equal('"hello"', inspect("hello"));
assert.equal("[Function]", inspect(function() {}));
assert.equal('undefined', inspect(undefined));
assert.equal('null', inspect(null));
assert.equal('/foo(bar\\n)?/gi', inspect(/foo(bar\n)?/gi));
assert.equal("\"\\n\\u0001\"", inspect("\n\u0001"));
@ -23,6 +24,24 @@ assert.equal('{\n "a": [Function]\n}', inspect({a: function() {}}));
assert.equal('{\n "a": 1,\n "b": 2\n}', inspect({a: 1, b: 2}));
assert.equal('{\n "a": {}\n}', inspect({'a': {}}));
assert.equal('{\n "a": {\n "b": 2\n }\n}', inspect({'a': {'b': 2}}));
assert.equal('[\n 1,\n 2,\n 3,\n [length]: 3\n]', inspect([1,2,3], true));
assert.equal("{\n \"visible\": 1\n}",
inspect(Object.create({}, {visible:{value:1,enumerable:true},hidden:{value:2}}))
);
assert.equal("{\n [hidden]: 2,\n \"visible\": 1\n}",
inspect(Object.create({}, {visible:{value:1,enumerable:true},hidden:{value:2}}), true)
);
// Objects without prototype
assert.equal(
"{\n [hidden]: \"secret\",\n \"name\": \"Tim\"\n}",
inspect(Object.create(null, {name: {value: "Tim", enumerable: true}, hidden: {value: "secret"}}), true)
);
assert.equal(
"{\n \"name\": \"Tim\"\n}",
inspect(Object.create(null, {name: {value: "Tim", enumerable: true}, hidden: {value: "secret"}}))
);
// Dynamic properties
assert.equal(
@ -35,12 +54,28 @@ value['a'] = value;
assert.equal('{\n "a": [Circular]\n}', inspect(value));
value = Object.create([]);
value.push(1);
assert.equal('{\n "0": 1,\n "length": 1\n}', inspect(value));
assert.equal("[\n 1,\n \"length\": 1\n]", inspect(value));
// Array with dynamic properties
value = [1,2,3];
value.__defineGetter__('growingLength', function () { this.push(true); return this.length; });
assert.equal(
"{\n \"0\": 1,\n \"1\": 2,\n \"2\": 3,\n \"growingLength\": [Getter]\n}",
"[\n 1,\n 2,\n 3,\n \"growingLength\": [Getter]\n]",
inspect(value)
);
);
// Function with properties
value = function () {};
value.aprop = 42;
assert.equal(
"{ [Function]\n \"aprop\": 42\n}",
inspect(value)
);
// Regular expressions with properties
value = /123/ig;
value.aprop = 42;
assert.equal(
"{ /123/gi\n \"aprop\": 42\n}",
inspect(value)
);

Просмотреть файл

@ -49,7 +49,8 @@ def CompressScript(lines, do_jsmin):
# If we're not expecting this code to be user visible, we can run it through
# a more aggressive minifier.
if do_jsmin:
return jsmin.jsmin(lines)
minifier = JavaScriptMinifier()
return minifier.JSMinify(lines)
# Remove stuff from the source that we don't want to appear when
# people print the source code using Function.prototype.toString().

Просмотреть файл

@ -1,218 +0,0 @@
#!/usr/bin/python
# This code is original from jsmin by Douglas Crockford, it was translated to
# Python by Baruch Even. The original code had the following copyright and
# license.
#
# /* jsmin.c
# 2007-05-22
#
# Copyright (c) 2002 Douglas Crockford (www.crockford.com)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
# the Software without restriction, including without limitation the rights to
# use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
# of the Software, and to permit persons to whom the Software is furnished to do
# so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# The Software shall be used for Good, not Evil.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
# */
from StringIO import StringIO
def jsmin(js):
ins = StringIO(js)
outs = StringIO()
JavascriptMinify().minify(ins, outs)
str = outs.getvalue()
if len(str) > 0 and str[0] == '\n':
str = str[1:]
return str
def isAlphanum(c):
"""return true if the character is a letter, digit, underscore,
dollar sign, or non-ASCII character.
"""
return ((c >= 'a' and c <= 'z') or (c >= '0' and c <= '9') or
(c >= 'A' and c <= 'Z') or c == '_' or c == '$' or c == '\\' or (c is not None and ord(c) > 126));
class UnterminatedComment(Exception):
pass
class UnterminatedStringLiteral(Exception):
pass
class UnterminatedRegularExpression(Exception):
pass
class JavascriptMinify(object):
def _outA(self):
self.outstream.write(self.theA)
def _outB(self):
self.outstream.write(self.theB)
def _get(self):
"""return the next character from stdin. Watch out for lookahead. If
the character is a control character, translate it to a space or
linefeed.
"""
c = self.theLookahead
self.theLookahead = None
if c == None:
c = self.instream.read(1)
if c >= ' ' or c == '\n':
return c
if c == '': # EOF
return '\000'
if c == '\r':
return '\n'
return ' '
def _peek(self):
self.theLookahead = self._get()
return self.theLookahead
def _next(self):
"""get the next character, excluding comments. peek() is used to see
if an unescaped '/' is followed by a '/' or '*'.
"""
c = self._get()
if c == '/' and self.theA != '\\':
p = self._peek()
if p == '/':
c = self._get()
while c > '\n':
c = self._get()
return c
if p == '*':
c = self._get()
while 1:
c = self._get()
if c == '*':
if self._peek() == '/':
self._get()
return ' '
if c == '\000':
raise UnterminatedComment()
return c
def _action(self, action):
"""do something! What you do is determined by the argument:
1 Output A. Copy B to A. Get the next B.
2 Copy B to A. Get the next B. (Delete A).
3 Get the next B. (Delete B).
action treats a string as a single character. Wow!
action recognizes a regular expression if it is preceded by ( or , or =.
"""
if action <= 1:
self._outA()
if action <= 2:
self.theA = self.theB
if self.theA == "'" or self.theA == '"':
while 1:
self._outA()
self.theA = self._get()
if self.theA == self.theB:
break
if self.theA <= '\n':
raise UnterminatedStringLiteral()
if self.theA == '\\':
self._outA()
self.theA = self._get()
if action <= 3:
self.theB = self._next()
if self.theB == '/' and (self.theA == '(' or self.theA == ',' or
self.theA == '=' or self.theA == ':' or
self.theA == '[' or self.theA == '?' or
self.theA == '!' or self.theA == '&' or
self.theA == '|' or self.theA == ';' or
self.theA == '{' or self.theA == '}' or
self.theA == '\n'):
self._outA()
self._outB()
while 1:
self.theA = self._get()
if self.theA == '/':
break
elif self.theA == '\\':
self._outA()
self.theA = self._get()
elif self.theA <= '\n':
raise UnterminatedRegularExpression()
self._outA()
self.theB = self._next()
def _jsmin(self):
"""Copy the input to the output, deleting the characters which are
insignificant to JavaScript. Comments will be removed. Tabs will be
replaced with spaces. Carriage returns will be replaced with linefeeds.
Most spaces and linefeeds will be removed.
"""
self.theA = '\n'
self._action(3)
while self.theA != '\000':
if self.theA == ' ':
if isAlphanum(self.theB):
self._action(1)
else:
self._action(2)
elif self.theA == '\n':
if self.theB in ['{', '[', '(', '+', '-']:
self._action(1)
elif self.theB == ' ':
self._action(3)
else:
if isAlphanum(self.theB):
self._action(1)
else:
self._action(2)
else:
if self.theB == ' ':
if isAlphanum(self.theA):
self._action(1)
else:
self._action(3)
elif self.theB == '\n':
if self.theA in ['}', ']', ')', '+', '-', '"', '\'']:
self._action(1)
else:
if isAlphanum(self.theA):
self._action(1)
else:
self._action(3)
else:
self._action(1)
def minify(self, instream, outstream):
self.instream = instream
self.outstream = outstream
self.theA = '\n'
self.theB = None
self.theLookahead = None
self._jsmin()
self.instream.close()
if __name__ == '__main__':
import sys
jsm = JavascriptMinify()
jsm.minify(sys.stdin, sys.stdout)

1
tools/jsmin.py Symbolic link
Просмотреть файл

@ -0,0 +1 @@
../deps/v8/tools/jsmin.py

Просмотреть файл

@ -7,7 +7,7 @@ from os.path import join, dirname, abspath
from logging import fatal
cwd = os.getcwd()
VERSION="0.1.27"
VERSION="0.1.28"
APPNAME="node.js"
import js2c
@ -91,7 +91,7 @@ def conf_subproject (conf, subdir, command=None):
copytree(src, default_tgt, True)
if command:
if os.system("cd %s && %s" % (default_tgt, command)) != 0:
if os.system("cd \"%s\" && %s" % (default_tgt, command)) != 0:
conf.fatal("Configuring %s failed." % (subdir))
debug_tgt = join(conf.blddir, "debug", subdir)
@ -191,7 +191,7 @@ def build_udns(bld):
static_lib = bld.env["staticlib_PATTERN"] % "udns"
rule = 'cd %s && make'
rule = 'cd "%s" && make'
default = bld.new_task_gen(
target= join("deps/udns", static_lib),
@ -234,7 +234,7 @@ def v8_cmd(bld, variant):
else:
mode = "debug"
cmd_R = 'python %s -C %s -Y %s visibility=default mode=%s %s library=static snapshot=on'
cmd_R = 'python "%s" -C "%s" -Y "%s" visibility=default mode=%s %s library=static snapshot=on'
cmd = cmd_R % ( scons
, bld.srcnode.abspath(bld.env_of_name(variant))