Permalink
Browse files

half-open test now passes, everything else hangs

  • Loading branch information...
substack committed Dec 17, 2012
1 parent a62d0ee commit 098c9cd9c19cf0a1a2547669eb9f377275e19ac7
Showing with 5 additions and 3 deletions.
  1. +1 −1 index.js
  2. +4 −2 test/half_open.js
View
@@ -66,7 +66,7 @@ function makeBounce (req, res) {
if (opts.path) updatePath(rs.buffers, opts.path);
if (stream.writable) {
- rs.pipe(stream);
+ rs.pipe(stream, { end : false });
stream.pipe(ws);
}
else if (opts.emitter) {
View
@@ -33,12 +33,14 @@ test('half-open', function (t) {
var lines = data.split(/\r?\n/);
for (var ix = 0; lines[ix] !== ''; ix++);
- t.same(lines.slice(ix), [
+ t.same(lines.slice(ix+1), [
'5',
'beep ',
'5',
'boop.',
- '0'
+ '0',
+ '',
+ ''
]);
});

0 comments on commit 098c9cd

Please sign in to comment.