Ryan Dahl
d0128787e7
Deprecate sendHeader() and writeHeader(), ppl should use writeHead()
15 years ago
Ryan Dahl
7a2e6d674a
Default to 2 second timeout for http servers
Taking a performance hit on 'hello world' benchmark by enabling this by
default, but I think it's worth it. Hopefully we can improve performance by
resetting the timeout less often - ideally a 'hello world' benchmark would
only touch the one timer once - if it runs in less than 2 seconds. The rest
should be just link list manipulations.
15 years ago
Ryan Dahl
ed0c109950
Add note about 'error' event to docs
15 years ago
Ryan Dahl
d2cff34fa3
Idle timeout changes
- setTimeout should active the timeout too. (test-net-set-timeout tests
this.)
- 'timeout' event is not automatically followed by an 'error' event. That
is the user is now responsible for destroying the stream if there is an
idle timeout.
15 years ago
Ryan Dahl
f7ff548dd0
Quote variables in configure script
15 years ago
Ryan Dahl
c90e44e582
Just add an extra include for strings.h - don't try to be cute
15 years ago
Ryan Dahl
8e5b91c79b
Revert "Check for strings.h"
This reverts commit 032f651824
.
15 years ago
Ryan Dahl
032f651824
Check for strings.h
15 years ago
Ryan Dahl
35dd0fb271
Patch v8 build for solaris
Submitted this patch to V8
http://codereview.chromium.org/1990010/show
15 years ago
Ryan Dahl
615d890622
Upgrade V8 to 2.2.9
15 years ago
Ryan Dahl
8ab238e7de
Revert "destroy instead of end http connection at end of pipeline"
This reverts commit 4ce1e1fca5
.
To fix test-http-full-response.js. Clearly this is not the correct solution.
Probably need idle timeouts.
15 years ago
Ryan Dahl
15bb392afd
Disable test-remote-module-loading
In ab068db9b1
this test was broken because (I
think) compile/run errors are set to crash the program instead of being
passed back.
Error reporting is more important than remote loading. Disabling until there
is a fix
15 years ago
Ryan Dahl
b78508266b
Change string.h to strings.h compile on solaris
15 years ago
Ryan Dahl
1ecb11f944
Add failing test - http responses not all complete
Report and test by soderblom.peter@gmail.com
15 years ago
Ryan Dahl
ab068db9b1
Improve error reporting
- No more single line "node.js:176:9" errors
- No more strange output when error happens on first line due to
module wrapper function.
- A few tests to check these things
15 years ago
Ryan Dahl
1d28cfcfb9
Better logic for testing if an argument is a port
If you did server.listen('123') it would open a socket in the current
directory called 123. Now it will interpret it as a port.
15 years ago
Ryan Dahl
d38d96eb61
Don't emit 'exit' twice from child process
15 years ago
Ryan Dahl
d7762dffe3
Forgot to add child_process_should_emit_error.js
15 years ago
Ryan Dahl
264e540d00
Fix error reporting in child_process callbacks
Issue 120, test case by Nathan Ostgard
15 years ago
rentzsch
a5b132ad63
fs.Stats.size V8::Integer => V8::Number.
While VM::Integer::Value() offers an int64_t, V8::Integer::New() only
accepts an int32_t, truncating fs.Stat's size in BuildStatsObject().
I consider this a bug in V8, and we should move back to V8::Integer
when it gets a ctr that allows a int64_t. Until then, this work-around
should hold.
15 years ago
Ryan Dahl
3ac6deefa8
Change GC idle notify so that it runs along side setInterval
Doesn't appear any slower. Also checks for high memory usage and tries to
force more notifications.
15 years ago
isaacs
bc45adcffa
Add binding.close to fs.readFile
15 years ago
Tim Caswell
c07c601c3b
fs.readFile uses a buffer internally and will return the raw buffer if no encoding is specified.
15 years ago
Ryan Dahl
62b642a88d
fix authors file
15 years ago
Ryan Dahl
d2415945c1
Install node_buffer.h on make install
15 years ago
Ryan Dahl
f711d5343b
bump version
15 years ago
Ryan Dahl
6aab6ebe61
Upgrade V8 to 2.2.8
15 years ago
Ryan Dahl
4ce1e1fca5
destroy instead of end http connection at end of pipeline
15 years ago
Thomas Lee
3674563dd5
Fix a bug in http.Client where parsers may be prematurely released back to the free pool.
15 years ago
Jonathan Knezek
82c8973dfa
Changed undefined pos to null to prevent hanging on SheevaPlug
15 years ago
Jonathan Knezek
874b80bd6a
Added c-ares headers for linux-arm
15 years ago
Ryan Dahl
ab723d022d
Add buffer response to http_simple.js
15 years ago
Ryan Dahl
1415650463
Use test port instead of 8000 in test-http-304
15 years ago
isaacs
c0d42b0365
Look in /usr/local/lib/node for modules, so that there's a way to install modules globally
15 years ago
Matt Ranney
eb4951d499
Add proper HTML header for changelog so UTF-8 works.
15 years ago
Ryan Dahl
453c9e6411
Fix whitespace
15 years ago
isaacs
3892628657
Emit a better error message when something strange is sent to OutgoingMessage#write
15 years ago
Ryan Dahl
d044e2de07
Lazy load crypto
The whole program is being slowed down by the large CA string in crypto.
Why?
15 years ago
Rhys Jones
afce4c3ae8
Added default CAs, updated openssl verify behaviour, added crypto and https documentation
15 years ago
Ryan Dahl
b6c5cf60b7
Ignore SIGPIPE
Was inadvertently removed with evcom,
c72967d335 (L10L1900)
15 years ago
Peter Griess
d9882395e2
Fix SEGV by setting msg_controllen earlier.
- Some implementations of CMSG_FIRSTHDR() rely on msg_controllen being
set correctly, else it returns NULL: see <linux/socket.h>.
15 years ago
Rhys Jones
1a317135c5
Additional OpenSSL tests
15 years ago
Paulo Matias
430cfd1825
Read all records to always empty the OpenSSL reading buffer.
15 years ago
Paulo Matias
3fed1cf36f
Make it possible to use client certificates to connect with a nodejs server, and make verifyPeer behaviour consistant.
15 years ago
Ryan Dahl
ea37d98949
Implement writeSync for buffers
(Needs tests still)
15 years ago
Ryan Dahl
3202bce288
Implement fs.readSync for buffers
15 years ago
Ryan Dahl
d76091d7d1
Implement fs.read() for Buffers (again)
15 years ago
Ryan Dahl
7a9c81d2dc
Fix memory leak with fs.writeSync
15 years ago
Ryan Dahl
b5bdf9434b
Add another http upgrade test
15 years ago
Ryan Dahl
f0fec7352a
Don't emit error twice from http.Client
15 years ago