Ben Noordhuis
11770bf5e2
test: move pummel/test-tls-fragmentation to benchmark/
...
Said test takes over 90 seconds on my Core 2 Duo which is too long, even for
the pummel tests.
2012-03-29 17:25:37 +02:00
Yosef Dinerstein
d7c96cf289
tls: reduce memory overhead, reuse buffer
...
Instead of allocating a new 64KB buffer each time when checking if there is
something to transform, continue to use the same buffer. Once the buffer is
exhausted, allocate a new buffer. This solves the problem of huge allocations
when small fragments of data are processed, but will also continue to work
well with big pieces of data.
2012-03-29 17:17:15 +02:00
Ben Noordhuis
daa6b95b08
test: move simple/test-crypto-dh to pummel/
...
The test is too slow / CPU intensive for the main test harness.
2012-03-29 17:12:26 +02:00
Ben Noordhuis
8c02f9b7c8
buffer: throw from constructor if length > kMaxLength
...
Throw, don't abort. `new Buffer(0x3fffffff + 1)` used to bring down the process
with the following error message:
FATAL ERROR: v8::Object::SetIndexedPropertiesToExternalArrayData() length
exceeds max acceptable value
Fixes #2280 .
2012-03-09 23:57:03 +01:00
Nathan Rajlich
07c886f944
process: add process.hrtime()
...
This commit adds a high-resolution timer function.
2012-03-06 20:43:55 +01:00
Igor Zinkovsky
61be6844aa
disable fs.watchFile tests on windows
2012-03-03 14:35:21 -08:00
Ben Noordhuis
7f4aba91d3
test: include common.js in all tests
2012-02-20 13:29:11 +01:00
isaacs
0cdf85e28d
Lint all the JavaScripts.
2012-02-18 15:34:57 -08:00
Ben Noordhuis
3415427dbf
tls: mitigate session renegotiation attacks
...
The TLS protocol allows (and sometimes requires) clients to renegotiate the
session. However, renegotiation requires a disproportional amount of server-side
resources, particularly CPU time, which makes it a potential vector for
denial-of-service attacks.
To mitigate this issue, we keep track of and limit the number of renegotiation
requests over time, emitting an error if the threshold is exceeded.
2012-02-16 18:15:21 +01:00
Ben Noordhuis
81d18398a8
test: add --debug-brk regression test
2012-02-07 23:42:38 +01:00
Andreas Madsen
4865063924
Tests: fix jslint issues
2012-01-17 19:45:09 +01:00
Ben Noordhuis
fd29448be0
test: add missing copyright headers
2011-12-06 22:02:26 +01:00
Bert Belder
b480cfaf34
Make the pummel test runner not crash on windows when a directory is locked
2011-11-25 10:27:30 +01:00
Ryan Dahl
4a8088a603
Socket.write should reset timeout timer.
...
Fixes #2002 .
2011-11-03 12:37:04 -07:00
Ryan Dahl
850609ea2d
Remove separation of libuv tests
2011-11-02 16:38:59 -07:00
Igor Zinkovsky
cc92234068
fix pummel/test-net-throttle on windows
2011-11-01 16:44:08 -07:00
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
2011-11-01 22:26:52 +01:00
Igor Zinkovsky
6d7aa65399
fix pummel/test-child-process-spawn-loop.js on windows
2011-10-28 18:32:27 -07:00
Ben Noordhuis
018e110cd1
test: replace .addListener() calls with .on()
2011-10-15 01:08:36 +02:00
Ryan Dahl
e911171e03
Move some slow tests to pummel
2011-10-12 16:59:00 -07:00
Ryan Dahl
7b4370e5f8
Fix test/pummel/test-watch-file.js
2011-10-12 16:19:46 -07:00
Ryan Dahl
651b8a06d6
Fix test/pummel/test-exec.js
2011-10-12 16:12:24 -07:00
Colton Baker
87286cc737
Fixed a lot of jslint errors.
...
Fixes #1831
2011-10-05 18:51:06 -07:00
Ryan Dahl
49806864e4
Add test from v0.4 dea49e3
...
Note this test completes in 3 seconds on v0.4 and 7 minutes on master. NOT
GOOD.
2011-09-30 09:56:37 -07:00
Ryan Dahl
4e1d6fca8e
Mark tests which are broken in libuv
2011-08-23 23:45:21 -07:00
koichik
8293bb8a32
test: refactored http test.
...
Many http tests had used legacy http.Client.
This refactored it to use modern API.
Fixes #1528 .
2011-08-16 23:59:57 +09:00
Mikeal Rogers
48dcb905f6
Update tests for http2.
2011-08-02 12:12:14 -07:00
Ryan Dahl
9c77169112
make test-process-uptime fail less often
2011-07-05 11:26:21 -07:00
Ryan Dahl
4d22405f0f
TimerWrap: mimic libev ref count semantics
2011-05-28 13:21:03 -07:00
Ryan Dahl
9d1bad8960
Implement new wrap for uv timer
2011-05-25 10:17:02 -07:00
Ryan Dahl
bfa9db9dd6
Merge branch 'v0.4'
...
Conflicts:
src/node_version.h
test/simple/test-buffer.js
2011-04-03 23:42:56 -07:00
Jorge Chamorro Bieling
e7604b1ea7
Retain buffers in fs.read/write()
...
Closes GH-814.
Closes GH-827.
2011-03-28 15:28:55 -07:00
Ryan Dahl
3c0dd8196a
Fix test-process-uptime.js test
2011-03-14 17:50:24 -07:00
Ryan Dahl
55048cdf79
Update copyright headers
2011-03-14 17:37:05 -07:00
Ryan Dahl
1f50d711b2
Fix memleak in vm.runInNewContext
...
Closes GH-704.
2011-02-24 15:46:55 -08:00
Ryan Dahl
26e580bbc4
Use console.error in test-timers
...
In attempt to understand buildbot failures.
2011-02-18 11:20:45 -08:00
Ryan Dahl
7f78e5857f
Move test-tls-throttle to pummel
2011-02-16 18:12:08 -08:00
Ryan Dahl
e0e52f930e
Remove artificial timeout from test-https-large-response
2011-02-16 12:22:48 -08:00
Ryan Dahl
60ad3aa917
Disable test-tls-large-push, taking too long
2011-02-15 14:06:23 -08:00
Ryan Dahl
97f7c06451
TLS: fix throttling
...
Re-enable test-https-large-response.js
Closes GH-614.
2011-02-03 12:20:19 -08:00
Ryan Dahl
41b4ec7952
TLS: flush buffer before destroy
...
Also disable test-https-large-response.js. Covered by
test/simple/test-tls-throttle.js
2011-02-02 15:34:21 -08:00
Ryan Dahl
6ede26cb9c
Add socket.bufferSize
2011-01-31 10:41:52 -08:00
Ryan Dahl
286389202f
Fix pummel/text-exec
2011-01-27 20:07:53 -08:00
Ryan Dahl
a86747603c
Fix test-http-upload-timeout
...
Cannot just close the connection or client will error.
2011-01-20 18:24:00 -08:00
Ryan Dahl
7a16e2a2a0
test-http-client-reconnect-bug: hang up should be error.
2011-01-20 18:19:30 -08:00
Ryan Dahl
39535d74df
move test-exec to pummel - too slow
2011-01-18 22:25:38 -08:00
Jorge Chamorro Bieling
e530507cb1
Add failing test for GH-511
2010-12-16 18:41:13 -08:00
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).
2010-12-05 15:42:41 -08:00
Ryan Dahl
92789b16e5
Fix global leaks
2010-12-04 16:36:21 -08:00
Ryan Dahl
a0159b4b29
Fix global leaks
2010-12-04 15:58:50 -08:00