Ben Noordhuis
2669966e76
http: speed up callbacks, use array indices
Use array indices rather than named properties to store callbacks on
the HTTPParser object. Speeds up the http benchmarks by a few percent.
11 years ago
isaacs
0cdf85e28d
Lint all the JavaScripts.
13 years ago
Ryan Dahl
f3da6c6c04
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
performance benefits.
13 years ago
Ben Noordhuis
8f15582ef3
test: add 'no response headers' http parser test
13 years ago
Maciej Małecki
fc61134b1a
doc: fix links
Changes:
* 'http://github.com ' => 'https://github.com '
* 'https://github.com/ry/node ' => 'https://github.com/joyent/node '
* 'https://github.com/ry/http-parser ' =>
'https://github.com/joyent/http-parser '
* old issue links
* wiki link
13 years ago
Ben Noordhuis
84d0b1bcc5
http: improve http parser bindings
Speeds up HTTP benchmarks by 10% on average.
13 years ago
Ryan Dahl
2126989a32
Fix test-http-upgrade-server and test-http-parser
Problem was introduced in last http-parser upgrade which fixed a long
standing bug with the upgrade event and removed several callbacks.
13 years ago
Ryan Dahl
55048cdf79
Update copyright headers
14 years ago
Oleg Efimov
093dfaf801
GJSLint all tests, only 3 long lines left in test-url.js
test/simple/test-url.js:31:(0110) Line too long (82 characters).
test/simple/test-url.js:39:(0110) Line too long (85 characters).
test/simple/test-url.js:40:(0110) Line too long (92 characters).
14 years ago
Ryan Dahl
a0159b4b29
Fix global leaks
14 years ago
Ryan Dahl
1d0fb850d9
test-http-parser should not use private API
14 years ago
Ryan Dahl
9fd5e3c89c
Update tests to work with module contexts
15 years ago
Ryan Dahl
ba792ea202
:%s/sys.puts/console.log/g
and there was much rejoicing
15 years ago
Ryan Dahl
025116f8d0
Move Buffer into own module
15 years ago
Ryan Dahl
04c06b9149
child process now use net.Socket
15 years ago
Ryan Dahl
71d237e6a0
Move net2 tests into test/simple
15 years ago
Ryan Dahl
dda1d681f7
Provide buffer in HTTPParser callbacks.
15 years ago
Ryan Dahl
42ee16978e
Implement new http-parser binding using Buffer
15 years ago