Ryan Dahl
fdae14070c
Move buffer constants at the top of net.js
Remove some cruft.
15 years ago
Ryan Dahl
e232cf3100
Hack to support UTF8 writes again!
15 years ago
Ryan Dahl
3197cf291d
Better flushing
Lost Utf8 support. Waiting for http://codereview.chromium.org/1539013
15 years ago
Tim Caswell
7af9cb9e80
Don't put an extra comma after bases in inspect.
{ [Function] { [Function]
, more: true => more: true
, more2: true , more2: true
, more3: true , more3: true
, more3: true , more4: true
, more3: true , more5: true
} }
15 years ago
Johan Dahlberg
18de108e4c
Bugfix: watchFile, unwatch, watch causes error
Fixed bug that caused application to cast a "TypeError: Cannot call method
'addListener' of undefined" when first watching a file, unwatching and then
watching same file again.
15 years ago
Herbert Vojcik
da16128bf6
missing return after forceClose
15 years ago
Ryan Dahl
d1b78c3f5d
More efficient Stream.write
15 years ago
Ryan Dahl
bb00fef3cd
Change Buffer.toString to conform to CommonJS Binary/F
Also add Buffer.inspect
15 years ago
Ryan Dahl
7ed80451ca
Increase pool.used before making 'data' event
15 years ago
Ryan Dahl
6740dd48b3
Change Buffer toString() output
15 years ago
Ryan Dahl
3546106c43
Add req.connection and res.connection
15 years ago
Ryan Dahl
6f21ac1282
Don't free http parser for the client!
Fixes test-http-client-race.js, test-http.js
15 years ago
Ryan Dahl
5c6f063ef2
snake to camel in HTTP
15 years ago
Ryan Dahl
70ffdf5db9
Fix HTTP keep-alive
15 years ago
Ryan Dahl
8e9ec4abea
Fix idle timeouts
Remove process.now because it doesn't provide enough precision.
15 years ago
Ryan Dahl
3238944c7a
Don't use sys.puts for debug in net.js
15 years ago
isaacs
6e603ccbe2
Fix debug statement that was using puts instead of debug()
15 years ago
Ryan Dahl
c66a0a739f
recvBuffer -> pool
15 years ago
Ryan Dahl
04001fb591
Don't deprecate readyState, yet
15 years ago
Ryan Dahl
ebe2721cbf
Don't use sys.debug, it gets preprocessed out
Problem introduced in b29f78772e
15 years ago
Ryan Dahl
139c91e892
Support old 'binary' encoding in net.js
15 years ago
Ryan Dahl
663269f687
old tcp module is now tcp_old
15 years ago
Ryan Dahl
025116f8d0
Move Buffer into own module
15 years ago
Ryan Dahl
ac684f3583
Add legacy 'binary' encoding/decoding methods to Buffer
15 years ago
Ryan Dahl
b80f6e9ed1
http2 now default
15 years ago
Ryan Dahl
776c3e2b29
Add note about Buffer abstraction
15 years ago
Ryan Dahl
3a993d8897
Buffer.utf8ByteLength -> Buffer.byteLength
15 years ago
Ryan Dahl
3e969f0f74
Random net.js clean ups
15 years ago
Ryan Dahl
f8c3b6009d
Remove send fd functionality
It was broken anyway. It will go into its own class later.
15 years ago
Ryan Dahl
90295d9fce
[net2] inline write on empty write buffer for performance
15 years ago
Ryan Dahl
1762abcece
http2 now passes all tests
15 years ago
Ryan Dahl
916e057fea
Add 'opening' readyState
15 years ago
Ryan Dahl
6db43f4c29
net2 HTTPClient work
15 years ago
Ryan Dahl
1332cafb7c
s/Socket/Stream/g
15 years ago
Ryan Dahl
04c06b9149
child process now use net.Socket
15 years ago
Krishna Rajendran
3847add943
Fix calls to dns bindings in dns.js
15 years ago
Ryan Dahl
953fa3a5f5
Move net2 bindings out of process
15 years ago
Ryan Dahl
fdf46a65c9
Use streams for stdout and stdin
15 years ago
Ryan Dahl
6befc72f82
Add missing lib/events.js
15 years ago
Ryan Dahl
627fb5adbb
Load c++ modules on demand
15 years ago
Ryan Dahl
5c712a7da5
Lazy load fs.readFile
15 years ago
Ryan Dahl
4ccdc501d4
Include lib/ directory in node executable. Compile on demand.
Instead of installing the files in /usr/lib/node/libraries and loading them
from the file system, the files are built-in to the node executable.
However, they are only compiled on demand.
The reasoning is:
1. Allow for more complex internal javascript. In particular,
process.stdout and process.stdin can be js implemented streams.
2. Ease system installs. Loading from disk each time is unnecessary
overhead. Note that there is no "system" path for modules anymore. Only
$HOME/.node_libraries.
15 years ago
Jed Schmidt
004faf3846
Added check to make sure writeHead() is called before write(), to prevent silent failure.
15 years ago
Ryan Dahl
96f08cf05c
Work on net2 http client
15 years ago
Ryan Dahl
aa6eaae0aa
Simplify Socket constructor
15 years ago
Ryan Dahl
3adf7a3dcf
TCP timeout opt-in instead of opt-out
For speed, idle connections are super cheap.
15 years ago
Ryan Dahl
b94af8d6b1
Only print readyState deprication message once
15 years ago
Ryan Dahl
6bd11f147a
Fix undefined reference in fs.js
15 years ago
Ryan Dahl
6d9227b79a
Make relative ref to sys in fs module.
15 years ago
Ryan Dahl
ca862d75de
[net2] Add Socket.setTimeout
Still seeing crashes and performance problems.
15 years ago