Ryan Dahl
105c35b9fd
http.Client shims
2011-01-20 18:10:15 -08:00
Ryan Dahl
e576d4ec79
Add parser to agent
2011-01-20 18:10:15 -08:00
Ryan Dahl
60aea96f84
first pass at http refactor for TLS
2011-01-20 18:10:15 -08:00
Ryan Dahl
ba80d4d8a9
Transfer data gathering responsibility to readline
...
Fixes non-raw REPL/Debugger on Posix.
2011-01-19 11:46:16 -08:00
Ryan Dahl
d4127717ac
Fix tab on posix tty
2011-01-19 11:33:42 -08:00
Bert Belder
e6e6e87463
Windows: fix window size getter bug
2011-01-18 23:22:38 -08:00
Bert Belder
4475b76535
Readline: use symbolic key names instead of ascii control codes
2011-01-18 23:22:38 -08:00
Bert Belder
8c9b2d1066
Readline: use tty methods instead of control sequences
2011-01-18 23:22:38 -08:00
Bert Belder
0b5bf70bff
Use tty.ReadStream and tty.WriteStream for stdio when appropriate
2011-01-18 23:22:38 -08:00
Bert Belder
87d898929f
Implement tty.ReadStream and tty.WriteStream
2011-01-18 23:22:38 -08:00
Alexis Sellier
66b418d6f3
make 'readyState' available to CryptoStream
2011-01-18 22:22:50 -08:00
Ryan Dahl
2f6cb66009
Add setEncoding to CryptoStream
2011-01-18 18:30:12 -08:00
Ryan Dahl
4d0416caf6
Add setNoDelay to cryptostream
2011-01-18 17:56:52 -08:00
Ryan Dahl
b22b5e341b
listen/bind errors should close net.Server
2011-01-18 16:22:43 -08:00
Ryan Dahl
2ec4cd5525
factor linklist code into own file
2011-01-18 14:26:32 -08:00
Bert Belder
6ad629895d
Make child_process.kill always work on windows
2011-01-18 04:58:32 +01:00
Bert Belder
0eb4c2157d
Define winsock error numbers
2011-01-18 04:58:30 +01:00
Bert Belder
dc99aa0c8c
Windows: implement missing stdio methods
2011-01-18 04:49:54 +01:00
Ryan Dahl
9bcfc0745c
Revert "Implement os.isWindows"
...
This reverts commit 9e31e0837e
.
Use process.platform == 'win32'
2011-01-13 20:32:36 -08:00
Ryan Dahl
860e7a7a5f
debugger: don't hang on ^d and ^c
2011-01-13 16:04:33 -08:00
Ryan Dahl
4fa712c48f
debugger: error out without script
...
TODO:
debug> run script.js
2011-01-13 15:29:53 -08:00
Ryan Dahl
53f29d86c0
debugger: add uncaughtException handler to kill child
2011-01-13 15:18:20 -08:00
Ryan Dahl
0fa3f2febd
debugger: Correctly eval arrays and numbers
2011-01-13 13:59:35 -08:00
Ryan Dahl
533797a607
debugger: full scope evals
2011-01-13 13:32:16 -08:00
Ryan Dahl
d87ab5450b
debugger: Better backtraces
2011-01-13 13:32:16 -08:00
Ryan Dahl
7df8a05129
debugger: primative object inspection
2011-01-13 13:32:16 -08:00
Ryan Dahl
cb71a7dab3
debugger: take help message from commands
2011-01-13 13:32:16 -08:00
Ryan Dahl
29f48d48e5
A few more list clean ups
2011-01-13 02:22:09 -08:00
Ryan Dahl
09994438e5
Expose link-list from timers.js; add tests
2011-01-13 02:10:09 -08:00
Ryan Dahl
4e1e6a2d15
debugger: Don't break on handle === 0
2011-01-12 16:43:05 -08:00
Ryan Dahl
5f5201db2f
Fix test-net-connect-buffer
...
Change to end() behavior in 33c339 was breaking it. end() should wait for
connection before dumping. Changed test-net-connect-timeout to use destroy()
instead.
2011-01-12 13:29:45 -08:00
Ryan Dahl
5f795efd4e
net: Timeouts should work before DNS resolution
2011-01-12 12:59:58 -08:00
Ryan Dahl
33c33949b2
Add test for connection timeouts
...
Also make socket.end() destroy connection if still trying to connect.
Previously was ignoring.
2011-01-12 10:57:03 -08:00
Ryan Dahl
72589b60ad
debugger: Only display basename of scripts
2011-01-12 10:33:10 -08:00
Ryan Dahl
1b63bd16ed
tab completion for commands in debugger
2011-01-12 10:32:48 -08:00
Ryan Dahl
86160a8807
NODE_DEBUG=timer instead of bitflags
2011-01-11 16:53:05 -08:00
Ryan Dahl
82e9da9fb7
Allow one extra ms in timer diff
...
Fixes sporadic test-next-tick-ordering.js failures
2011-01-11 16:51:09 -08:00
isaacs
6f5d95de6d
child_process: Add gid/uid flags to spawn config
...
This is mostly working, but not completely ideal for two reasons.
1. Rather than emitting an error on the ChildProcess object when the
setgid/setuid fails, it is simply printing the error to stderr and
exiting. The same happens with the cwd, so that's not completely
terrible.
2. I don't have a good test for this. It fails with an EPERM if you try
to change the uid or gid as a non-root user.
2011-01-11 10:02:58 -08:00
Ryan Dahl
b9cfd9527a
getWindowSize/setWindowSize
2011-01-10 17:25:48 -08:00
Ryan Dahl
63bd237892
typo setuid -> setsid
2011-01-10 17:15:17 -08:00
Ryan Dahl
1f38046b51
tty.open() returns stream instead of slaveFD
...
Also is run in its own session.
2011-01-10 16:25:15 -08:00
Ryan Dahl
202dd8387f
Add setsid option to child_process
2011-01-10 16:24:49 -08:00
Ryan Dahl
9da75f39d9
Print error when EventEmitters get too many listeners
2011-01-10 13:48:35 -08:00
Ryan Dahl
e1f4b3f009
debugger: implement 'list'
2011-01-08 19:10:17 -08:00
Ryan Dahl
5580907c58
debugger: fix 'scripts' command
...
path.split() no longer available
2011-01-08 18:20:39 -08:00
Ryan Dahl
2e76cd382f
TLS: Forward errors to cleartext
...
But only after control has been inverted.
2011-01-07 10:58:13 -08:00
Ryan Dahl
5a05992155
Lint
2011-01-06 16:06:27 -08:00
Bert Belder
1ac133ea6f
Replace string magic + path.join by path.resolve
...
Because path.resolve is more elegant and windows-safe.
2011-01-06 15:39:51 -08:00
Bert Belder
dea2331377
Rework fs.realpath, primordal windows compatibility
2011-01-06 15:38:50 -08:00
Bert Belder
7c731ec9dd
Path.resolve, path module windows compatibility
...
Removes path.normalizeArray() and path.split()
2011-01-06 15:36:25 -08:00
Ryan Dahl
b6dafc1a47
Allow for two streams in REPL
...
Towards windows compatibility.
2011-01-06 13:42:32 -08:00
Ryan Dahl
b62152bc84
Rename net.Stream to net.Socket
2011-01-05 11:53:56 -08:00
Bert Belder
af15b4e45a
Remove path module dependency from url module
...
Now the path module can be adapted to support windows paths without breaking
the url module. It also allows the undocumented keepBlanks flag to be
removed from path.join and path.normalizeArray.
2011-01-05 11:27:22 -08:00
Bert Belder
9ddfcfecca
Remove keepBlanks flag from path functions
2011-01-05 11:17:38 -08:00
Bert Belder
9e31e0837e
Implement os.isWindows
2011-01-04 18:38:58 -08:00
Bert Belder
3c330b05b1
Merge branch 'master' of git://github.com/ry/node
...
Conflicts:
src/node.cc
src/node.js
2011-01-05 00:41:59 +01:00
Ryan Dahl
cda4d56bcf
Implement WriteStream.destroySoon
2011-01-04 11:39:12 -08:00
Ryan Dahl
bc1d758408
net.js: Check that readWatcher exists before pause, resume
2011-01-04 11:25:36 -08:00
Ryan Dahl
2957382991
Implement new stream method, destroySoon
...
Still missing on fs.WriteStream
2011-01-04 11:22:19 -08:00
Ryan Dahl
73f4ec51fd
hack for ending https connections
2011-01-04 10:36:05 -08:00
Ryan Dahl
94f8368cf9
First pass at new https server
2011-01-03 15:51:05 -08:00
Ryan Dahl
e4dd5cd6fd
NODE_DEBUG uses strings instead of bitflags
2011-01-03 15:41:58 -08:00
Ryan Dahl
d040f1d19d
debugger: use correct handle handle
2011-01-03 13:21:28 -08:00
Ryan Dahl
282cce1ea5
debugger: don't display whole path of scripts
2011-01-03 12:58:19 -08:00
Ryan Dahl
6593a96373
Merge branch 'debugger'
2011-01-03 10:27:16 -08:00
Ryan Dahl
feb77eab65
Fix REPL for named functions
...
add some tests.
2011-01-02 18:27:14 -08:00
Bert Belder
33118df8f9
Merge remote branch 'origin/master'
...
Conflicts:
src/node_net.cc
src/node_os.cc
2011-01-02 22:57:32 +01:00
Ryan Dahl
c82fe30ca1
repl.js style
2011-01-01 21:41:07 -08:00
Ryan Dahl
00974df3e5
Allow for evaling statements in REPL too
2011-01-01 21:05:23 -08:00
Ryan Dahl
b45698e676
Improve how REPL commands are evaled
...
Before:
> {a: 1}
1
> (function() {
... // foo
... return 1;
... })();
...
Now:
> {a: 1}
{ a : 1 }
> (function() {
... // foo
... return 1;
... })();
1
>
2011-01-01 17:54:48 -08:00
Ryan Dahl
8f5f213a6f
Revert "Add optional filters to stream.pipe()"
...
This reverts commit 24aded078f
.
2011-01-01 16:41:39 -08:00
Sami Samhuri
e5a47c8ce1
use util.inspect to format objects and arrays printed to the console
2010-12-30 19:14:30 -08:00
Daniel C
ca8cc71bd0
EventEmitter.prototype.once should "return this;"
2010-12-30 18:58:43 -08:00
Ryan Dahl
af6662d5e5
debugger: Prompt before quitting
2010-12-30 18:50:07 -08:00
Ryan Dahl
7b9a2f29b4
debugger: Don't prompt until child is killed
2010-12-30 18:07:19 -08:00
Ryan Dahl
aea568b04a
Fix some errors in debugger tests
2010-12-30 17:53:53 -08:00
Ryan Dahl
294bcb33e6
debugger: Fix some parser issues
...
Wouldn't handle events if it got backed up.
2010-12-30 17:33:07 -08:00
Ryan Dahl
62e0ca05a6
debugger: Disable/Enable raw mode for child
2010-12-30 15:46:47 -08:00
Ryan Dahl
0946474b5c
debugger: Clean ups, bug fixes
2010-12-30 13:25:49 -08:00
Ryan Dahl
866201bd74
debugger: add 'kill' command
2010-12-30 12:35:13 -08:00
Ryan Dahl
a3c4e17c2a
debugger: repeat command functionality
2010-12-30 11:54:49 -08:00
Ryan Dahl
074af67dd3
debugger: don't display node's internal scripts
2010-12-30 11:53:55 -08:00
Ryan Dahl
d4859a55bc
Wrap up debugger in one class
...
just for better readablity
2010-12-30 11:17:12 -08:00
Ryan Dahl
109f845e49
debugger: style
2010-12-30 10:34:33 -08:00
Ryan Dahl
9244a64b59
debugger: Print error if executing command that requires being connected
2010-12-30 10:31:36 -08:00
Ryan Dahl
481329ee7c
debugger: clean up
2010-12-30 10:18:25 -08:00
Ryan Dahl
f484cbf4c7
Debugger: better maintance of script list
2010-12-30 10:02:42 -08:00
Ryan Dahl
bb400d5697
debugger: Work towards interactive restart
2010-12-30 01:35:20 -08:00
Ryan Dahl
e33d0de129
debugger: Clean up child
2010-12-30 01:35:13 -08:00
Ryan Dahl
90e55c3357
Rather have the debugger be parent process
2010-12-30 01:35:13 -08:00
Ryan Dahl
50c1c1e12d
add 'info breakpoints'
2010-12-30 01:35:12 -08:00
Ryan Dahl
74cc021ec2
highlight current script
2010-12-30 01:35:12 -08:00
Ryan Dahl
080daf9ddd
debugger: 'scripts' command was conflicting with 's'
2010-12-30 01:35:12 -08:00
Ryan Dahl
0adc6b29bd
Start on frame zero - don't do extra break
2010-12-30 01:35:12 -08:00
Ryan Dahl
0c928b124c
debugger: Clean up a few commands
2010-12-30 01:35:12 -08:00
Ryan Dahl
8874c51d04
Disable OPOST
...
Helps when sharing a tty with non-raw mode processes
2010-12-30 01:35:12 -08:00
Ryan Dahl
3be4f097a3
Debugger: Fix some output
2010-12-30 01:35:12 -08:00
Ryan Dahl
b5aed43f04
Add better breakpoint text
2010-12-30 01:35:12 -08:00
Ryan Dahl
0dcbe3f74a
Fork out to debugger on debugger statements
...
Also implement continue in Client.
2010-12-30 01:35:12 -08:00
Ryan Dahl
4e81cf7def
Debugger client emits ready after recving initial res
2010-12-30 01:35:11 -08:00
Ryan Dahl
a8417c128e
Add more debugger tests
2010-12-30 01:35:11 -08:00
Ryan Dahl
8e96b8ab9b
keep track of current frame. eval works for global scope
2010-12-30 01:35:11 -08:00
Ryan Dahl
797aa97e19
Fix test-debugger-client
2010-12-30 01:35:11 -08:00
Ryan Dahl
8d82ec2130
Add beginning of build-in debugger
...
+ test-debugger-client (which is currently broken)
2010-12-30 01:35:11 -08:00
Ryan Dahl
e3ce73a214
Add ability to ask question from readline
2010-12-30 01:35:01 -08:00
Brian White
d75c338dd6
Add more functionality to the os module
2010-12-22 11:01:25 -08:00
Oleg Slobodskoi
23cf938e4f
fix assert.throws
2010-12-21 12:41:57 -08:00
Bert Belder
9be07f7fe1
_Partial_ fix for backslash path separator support in path.js
...
Needs review & tests
2010-12-20 23:51:27 +01:00
Jeremy Martin
6f726cf8c7
url.parse(url, true) defaults query field to {}
2010-12-20 13:48:44 -08:00
Ryan Dahl
8db0bbe0dc
Add callback to CryptoStream.write
2010-12-20 11:08:51 -08:00
Ryan Dahl
41d73e02a2
cleartext.socket always exists
2010-12-18 16:38:32 -08:00
Ryan Dahl
bb27885251
TLS: check we're not disconnected before Cleartext blow
2010-12-18 15:34:10 -08:00
Ryan Dahl
3cf2cbf904
Parse issuer and subject from CryptoStream.getPeerCertificate
2010-12-18 11:26:54 -08:00
Ryan Dahl
24aded078f
Add optional filters to stream.pipe()
2010-12-17 13:56:47 -08:00
Brian White
6d75c06e64
Add os module to repl's built-in lib list
2010-12-16 17:37:00 -08:00
Ryan Dahl
632da2a393
Add callback paramenter to socket.connect()
2010-12-15 15:57:41 -08:00
Ryan Dahl
c4161f32f5
Add callback to socket.write()
2010-12-15 15:47:02 -08:00
Ryan Dahl
c970968ee6
better option parsing for socket.write()
2010-12-15 15:15:27 -08:00
Ryan Dahl
a59483bd1d
TLS: server should die on junk
2010-12-11 02:45:38 -08:00
Ryan Dahl
e3d1808ef0
Rename node::SecureStream to node::crypto::Connection
...
node::SecureStream is definitely not a "stream" in the Node sense. Renaming
it to avoid ambiguity. (Adding namespace to not confuse with some other
Connection object.)
2010-12-11 02:13:29 -08:00
Ryan Dahl
6636bfaa0a
TLS: Simplify code from suck and blow
2010-12-11 01:42:55 -08:00
Ryan Dahl
66767edf12
Add CryptoStream.destroy()
2010-12-11 01:21:25 -08:00
Ryan Dahl
953561ab06
Factor out CryptoStream.end; support data on end()
2010-12-11 01:18:45 -08:00
Brian White
f1762ff815
Add os module and getHostname
2010-12-11 00:51:20 -08:00
Ryan Dahl
dc65cbd2e9
Factor out some _cycle functionality into Cleartext and EncrypteStreams
2010-12-10 22:29:46 -08:00
Ryan Dahl
70baeba8a9
Add receivedShutdown() binding
2010-12-10 22:09:46 -08:00
Ryan Dahl
d4f1ab00d2
Add EncryptedStream and CleartextStream classes
...
Towards half-closed secure sockets.
2010-12-10 18:25:23 -08:00
Ryan Dahl
c444293be9
Start a simple TLS client verification test
2010-12-10 18:02:58 -08:00
Ryan Dahl
5138992f3c
Add some verification code to tls.connect()
2010-12-09 02:46:57 -08:00
Ryan Dahl
a473b8dafb
Move getPeerCertificate and getCipher to CryptoStream
2010-12-09 02:31:22 -08:00
Ryan Dahl
2ca63c8f79
Initial implementation of tls.connect()
...
Seems to work checkout test/disabled/tls-client.js
Type "GET /" after connected.
2010-12-09 00:38:12 -08:00
Ryan Dahl
137c361517
pair.cleartext, pair.encrypted now instances of tls.CryptoStream
2010-12-09 00:10:27 -08:00
Ryan Dahl
0ea0b921b7
TLS: emit 'secureConnection' instead of two events
2010-12-08 12:05:19 -08:00
Ryan Dahl
a952231640
remove old todo
2010-12-08 11:55:13 -08:00
Ryan Dahl
13b14300b9
TLS: emit 'end' on both streams
2010-12-08 11:51:41 -08:00
Ryan Dahl
a0c55dfe09
TLS: don't use events when control hasn't been inverted
2010-12-08 11:46:19 -08:00
Ryan Dahl
0ec57ea34c
Some TLS clean ups
2010-12-08 11:27:17 -08:00
Ryan Dahl
5b8c62f7d1
Add broken, but detailed TLS verify test
...
Plus a bunch of keys.
2010-12-07 11:53:41 -08:00
Ryan Dahl
0b0faceb19
Move securepair stuff into tls.js
2010-12-05 18:19:18 -08:00
Ryan Dahl
5bca100afe
Server must not request cert.
2010-12-05 18:13:20 -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
Devin Torres
8c6a7b5de4
Use more color in the repl, loosely inspired by TextMate's SunBurst theme
2010-12-03 16:07:20 -08:00
Brian White
e41e078159
Make sure REPL doesn't get borked when invalid REPL keywords are entered
2010-12-03 09:57:36 -08:00
Ryan Dahl
a0e9a510b0
Introduce require('tty')
...
You may need to reconfigure after this commit due to the new library.
2010-12-02 18:06:43 -08:00
Ryan Dahl
558e5ba2b0
lint util.js and src/node.js
2010-12-02 12:27:26 -08:00
isaacs
7c57eb2aec
lint url.js
2010-12-02 11:46:32 -08:00
Ryan Dahl
dd53ceebe4
lint
2010-12-01 20:59:06 -08:00
Ryan Dahl
e232f6e735
more lint
2010-12-01 20:28:28 -08:00
Ryan Dahl
09329cbb04
more lint
2010-12-01 17:43:30 -08:00
Ryan Dahl
f22c248e4c
more lint
2010-12-01 17:29:11 -08:00
Ryan Dahl
11ea8da9c3
lint child_process.js
2010-12-01 16:56:03 -08:00
Ryan Dahl
db78043d52
lint
2010-12-01 16:42:31 -08:00
Ryan Dahl
d8f2880ca4
New TLS server API
2010-12-01 13:00:17 -08:00
Ryan Dahl
ec1589875c
Stop watcher before calling .set() in Stream.prototype.resume
2010-12-01 12:52:34 -08:00
Ryan Dahl
5dab4be53c
Remove useless shouldVerify assignments
2010-12-01 11:31:22 -08:00
Ryan Dahl
89e398f075
Better array check in Cert Authority list
2010-12-01 11:23:25 -08:00
Ryan Dahl
855210ce0b
add shouldVerifyPeer param to SecurePairs
2010-12-01 09:27:13 -08:00
Michael W
5f3464cf4e
fixed timers, whoops.
...
Fixes issue https://github.com/ry/node/issues/issue/481
2010-11-30 22:33:29 -08:00
Ryan Dahl
4b947310b2
Move root certs out of JavaScript
2010-11-30 18:19:54 -08:00
Ryan Dahl
09157369b3
style
2010-11-30 18:19:54 -08:00
Ryan Dahl
70188499b0
Lazy load console object
2010-11-30 11:18:02 -08:00
Ryan Dahl
aed0ba3211
buffer.copy targetStart defaults to 0
2010-11-29 19:59:01 -08:00
Ryan Dahl
6d7242b485
Document defaults for buffer.copy()
2010-11-29 19:52:47 -08:00
Michael W
645c3b3713
Fixed: clearTimeouts calling multiple times
...
When clearTimeouts was called on a timer multiple times, it would break the
doubly-linked list along with future timeouts. This patch fixes that.
2010-11-29 18:17:13 -08:00
Travis Swicegood
22cf5a24db
Simplify execution from "big if statement"
...
This code is functionally equivalent, but in a simpler form. Now new
parameters to `execFile` do not require `exec` to be refactored.
2010-11-29 17:46:46 -08:00
Travis Swicegood
e514f575f3
Remove cruft that dealt with env parameter
...
Originally added in commit 078a48a9
, this code dealt with an optional
env parameter that was passed to `exec`. The parameter was removed, but
this code was left. As it serves no purpose, removing it.
2010-11-29 17:43:27 -08:00
Jeremy Martin
144b2a5338
Fix number of args emitted by EventEmitter during "fast case" (lte 3 args)
2010-11-29 17:25:50 -08:00
Oleg Slobodskoi
02083412eb
assert.throws can now accept as RegExp
...
makes validation of errors more flexible
2010-11-29 17:22:36 -08:00
Travis Swicegood
86727b15f3
fix a typo in comment
...
fixes issue 464
2010-11-29 17:07:30 -08:00
Evan Larkin
bc02d47b21
Fix variable leak.
...
Fixes issue 461
2010-11-29 17:07:25 -08:00
Ryan Dahl
735b9d50a3
Simplify state transitions in http.Client
...
Fixes new bug shown in test-http-allow-req-after-204-res.js pointed out by
Tom Carden <tom.carden@gmail.com>.
2010-11-29 14:21:51 -08:00
Ryan Dahl
6057747e9e
Improve HTTP debug messages
2010-11-29 13:53:35 -08:00
Ryan Dahl
1db59afb75
style
2010-11-29 08:57:40 -08:00
Ryan Dahl
bf89872306
style
2010-11-28 23:20:59 -08:00
Ryan Dahl
102b1d999d
Add simple securepair client test
2010-11-28 18:40:50 -08:00
isaacs
a52f59b437
Use a proper tty test.
2010-11-27 11:36:34 -08:00
Ryan Dahl
a6f6532dfb
Fix test-securepair-server
2010-11-23 18:30:52 -08:00
Ryan Dahl
4f32a59307
Fix buffer.slice(0, 0)
2010-11-23 12:20:22 -08:00
Ben Noordhuis
611dffabb6
Support CNAME lookups in DNS module.
2010-11-21 20:53:57 -08:00
Ryan Dahl
6063ea62df
fix style in path.js
2010-11-21 14:15:46 -08:00
Ryan Dahl
c321e9893d
stream.pipe should remove listeners on dest close
2010-11-20 23:08:45 -08:00
Ryan Dahl
2320497992
Revert "Merge branch 'writev'"
...
This reverts commit cd9515efd9
, reversing
changes made to df46c8e698
.
Too slow. Needs more work.
2010-11-20 20:55:15 -08:00
Marco Rogers
118b88e44f
update repl to distinguish JSON.parse SyntaxErrors from the rest
2010-11-20 20:36:14 -08:00
Ryan Dahl
d722c8df73
Add some comments to securepair
2010-11-19 13:02:14 -08:00
Ryan Dahl
9c29ac6feb
Fix style
2010-11-19 10:05:41 -08:00
Ryan Dahl
1f18648394
Fix typo
2010-11-18 16:47:38 -08:00
Ryan Dahl
2ba3c10d62
Only try to flush big buffers once
2010-11-18 16:47:38 -08:00
Ryan Dahl
849792e46b
Add todo about test-pipe.js and throwing on resume()
2010-11-18 16:47:38 -08:00
Ryan Dahl
544877d12e
Fix socket.end() problem on non-empty queue
2010-11-18 16:47:38 -08:00
Ryan Dahl
3884b4185a
Small clean ups
2010-11-18 16:47:38 -08:00
Ryan Dahl
02039c9b53
'connect' event may disconnect socket
2010-11-18 16:47:38 -08:00
Ryan Dahl
fa556a1425
Add callback to socket.write(), fix test-sendfds
2010-11-18 16:47:38 -08:00
Ryan Dahl
a6d8425382
make sure unix sockets are tagged correctly
2010-11-18 16:47:38 -08:00
Ryan Dahl
5d6a03c9fe
Don't append buckets of zero length
2010-11-18 16:47:38 -08:00
Ryan Dahl
10ff559ec3
Add IOWatcher.flush()
...
To be called if sockets get too much data. This is to force a flush before
the tick ends.
2010-11-18 16:47:37 -08:00
Ryan Dahl
7c3c5c6861
Maintain queueSize for each socket
2010-11-18 16:47:37 -08:00
Ryan Dahl
5a84461e46
Also do ondrain callback for socket (needed by http)
2010-11-18 16:47:37 -08:00
Ryan Dahl
e1250a3333
Reset _eof on socket reuse
2010-11-18 16:47:37 -08:00
Ryan Dahl
5ba0be6166
Don't send null data segments
2010-11-18 16:47:37 -08:00