Skip to content

Instantly share code, notes, and snippets.

From 3a5e44ce4ffb9a92be0dfad3f7d657f20316f559 Mon Sep 17 00:00:00 2001
From: Ryan Dahl <ry@tinyclouds.org>
Date: Thu, 5 Jan 2012 13:15:10 -0800
Subject: [PATCH] rebase r10330 from V8
http://code.google.com/p/v8/source/detail?r=10330
---
deps/v8/src/arm/code-stubs-arm.cc | 6 +-
deps/v8/src/flag-definitions.h | 8 ++
deps/v8/src/heap.cc | 15 ++++
From 9588ed5c11d60cb94cbce776bc2f2d6c14caa098 Mon Sep 17 00:00:00 2001
From: Ryan Dahl <ry@tinyclouds.org>
Date: Thu, 29 Dec 2011 16:06:14 -0800
Subject: [PATCH] Potential fix for #2438
- Save StringPtr if the header hasn't been completely received yet after one
packet.
- Add one to num_fields and num_values. They were actually one less than the
number of fields and values.
- Remove always_inline makes debugging difficult, and has negligible
From d6f69dd67dbf56076ad16e6982765fc83ad26a5c Mon Sep 17 00:00:00 2001
From: Ryan Dahl <ry@tinyclouds.org>
Date: Thu, 29 Dec 2011 16:06:14 -0800
Subject: [PATCH] Potential fix for #2438
- Save StringPtr if the header hasn't been completely received yet after one
packet.
- Add one to num_fields and num_values. They were actually one less than the
number of fields and values.
- Remove always_inline makes debugging difficult, and has negligible
From c9cee2d14428daacaf4e0188803c26a39b809958 Mon Sep 17 00:00:00 2001
From: Ryan Dahl <ry@tinyclouds.org>
Date: Thu, 29 Dec 2011 16:06:14 -0800
Subject: [PATCH] Potential fix for #2438
version 2
---
src/node_http_parser.cc | 61 ++++++++++++++++++++++++++++-----------
test/simple/test-http-parser.js | 6 ++-
2 files changed, 48 insertions(+), 19 deletions(-)
From 272ef4891ccdb23f267b984e0f47c0274961604d Mon Sep 17 00:00:00 2001
From: Ryan Dahl <ry@tinyclouds.org>
Date: Thu, 29 Dec 2011 16:06:14 -0800
Subject: [PATCH] Potential fix for #2438
---
src/node_http_parser.cc | 28 ++++++++++++++++++++++++++++
1 files changed, 28 insertions(+), 0 deletions(-)
diff --git a/src/node_http_parser.cc b/src/node_http_parser.cc
// node --expose_gc test-http-parser-big.js
// Run this program with valgrind or efence to expose a problem.
var assert = require('assert');
var HTTPParser = process.binding('http_parser').HTTPParser;
var CRLF = "\r\n";
var headersComplete = 0;
var messagesComplete = 0;
var assert = require('assert');
var HTTPParser = process.binding('http_parser').HTTPParser;
var CRLF = "\r\n";
var headersComplete = 0;
var messagesComplete = 0;
function newParser(type) {
var parser = new HTTPParser(type);
diff --git a/src/node_http_parser.cc b/src/node_http_parser.cc
index 38251a1..3493552 100644
--- a/src/node_http_parser.cc
+++ b/src/node_http_parser.cc
@@ -447,6 +447,8 @@ public:
size_t nparsed =
http_parser_execute(&parser->parser_, &settings, buffer_data + off, len);
+ parser->Flush();
+
From 4964a90d7d91288a2ae83f76a33b05740bd83041 Mon Sep 17 00:00:00 2001
From: Ryan Dahl <ry@tinyclouds.org>
Date: Wed, 28 Dec 2011 13:26:57 -0800
Subject: [PATCH] uv_pipe_pair WIP
---
include/uv.h | 7 +++
src/unix/pipe.c | 36 ++++++++++++++++
test/test-list.h | 3 +
test/test-pipe-pair.c | 109 +++++++++++++++++++++++++++++++++++++++++++++++++
diff --git a/src/node_http_parser.cc b/src/node_http_parser.cc
index 38251a1..32fd08d 100644
--- a/src/node_http_parser.cc
+++ b/src/node_http_parser.cc
@@ -119,15 +119,17 @@ static size_t current_buffer_len;
#define HTTP_CB(name) \
- static int name(http_parser* p_) { \
- Parser* self = container_of(p_, Parser, parser_); \