<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/node.git/test/simple/test-http.js, branch move-debugger-tests</title>
<subtitle>github.com: joyent/node.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node.git/'/>
<entry>
<title>stream: Don't emit 'end' unless read() called</title>
<updated>2013-03-10T18:08:22+00:00</updated>
<author>
<name>isaacs</name>
<email>i@izs.me</email>
</author>
<published>2013-03-10T02:05:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node.git/commit/?id=327b6e3e1de88ba1db83142d53b3a57f0d06d519'/>
<id>327b6e3e1de88ba1db83142d53b3a57f0d06d519</id>
<content type='text'>
This solves the problem of calling `readable.pipe(writable)` after the
readable stream has already emitted 'end', as often is the case when
writing simple HTTP proxies.

The spirit of streams2 is that things will work properly, even if you
don't set them up right away on the first tick.

This approach breaks down, however, because pipe()ing from an ended
readable will just do nothing.  No more data will ever arrive, and the
writable will hang open forever never being ended.

However, that does not solve the case of adding a `on('end')` listener
after the stream has received the EOF chunk, if it was the first chunk
received (and thus, length was 0, and 'end' got emitted).  So, with
this, we defer the 'end' event emission until the read() function is
called.

Also, in pipe(), if the source has emitted 'end' already, we call the
cleanup/onend function on nextTick.  Piping from an already-ended stream
is thus the same as piping from a stream that is in the process of
ending.

Updates many tests that were relying on 'end' coming immediately, even
though they never read() from the req.

Fix #4942
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This solves the problem of calling `readable.pipe(writable)` after the
readable stream has already emitted 'end', as often is the case when
writing simple HTTP proxies.

The spirit of streams2 is that things will work properly, even if you
don't set them up right away on the first tick.

This approach breaks down, however, because pipe()ing from an ended
readable will just do nothing.  No more data will ever arrive, and the
writable will hang open forever never being ended.

However, that does not solve the case of adding a `on('end')` listener
after the stream has received the EOF chunk, if it was the first chunk
received (and thus, length was 0, and 'end' got emitted).  So, with
this, we defer the 'end' event emission until the read() function is
called.

Also, in pipe(), if the source has emitted 'end' already, we call the
cleanup/onend function on nextTick.  Piping from an already-ended stream
is thus the same as piping from a stream that is in the process of
ending.

Updates many tests that were relying on 'end' coming immediately, even
though they never read() from the req.

Fix #4942
</pre>
</div>
</content>
</entry>
<entry>
<title>test: replace .addListener() calls with .on()</title>
<updated>2011-10-14T23:08:36+00:00</updated>
<author>
<name>Ben Noordhuis</name>
<email>info@bnoordhuis.nl</email>
</author>
<published>2011-10-14T23:08:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node.git/commit/?id=018e110cd11720997e49c9b270ecc50a04de4ece'/>
<id>018e110cd11720997e49c9b270ecc50a04de4ece</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fixed a lot of jslint errors.</title>
<updated>2011-10-06T01:51:06+00:00</updated>
<author>
<name>Colton Baker</name>
<email>github@netrefuge.net</email>
</author>
<published>2011-10-04T22:08:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node.git/commit/?id=87286cc7371886d9856edf424785aaa890ba05a9'/>
<id>87286cc7371886d9856edf424785aaa890ba05a9</id>
<content type='text'>
Fixes #1831
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes #1831
</pre>
</div>
</content>
</entry>
<entry>
<title>test: refactored http test.</title>
<updated>2011-08-16T14:59:57+00:00</updated>
<author>
<name>koichik</name>
<email>koichik@improvement.jp</email>
</author>
<published>2011-08-14T06:02:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node.git/commit/?id=8293bb8a3277b23431766fd91c34ea6a163eba1c'/>
<id>8293bb8a3277b23431766fd91c34ea6a163eba1c</id>
<content type='text'>
Many http tests had used legacy http.Client.
This refactored it to use modern API.

Fixes #1528.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Many http tests had used legacy http.Client.
This refactored it to use modern API.

Fixes #1528.
</pre>
</div>
</content>
</entry>
<entry>
<title>Update copyright headers</title>
<updated>2011-03-15T00:37:05+00:00</updated>
<author>
<name>Ryan Dahl</name>
<email>ry@tinyclouds.org</email>
</author>
<published>2011-03-10T08:54:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node.git/commit/?id=55048cdf79f3c607ab986c35d0422e591e7f6448'/>
<id>55048cdf79f3c607ab986c35d0422e591e7f6448</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>GJSLint all tests, only 3 long lines left in test-url.js</title>
<updated>2010-12-05T23:42:41+00:00</updated>
<author>
<name>Oleg Efimov</name>
<email>efimovov@gmail.com</email>
</author>
<published>2010-12-05T22:33:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node.git/commit/?id=093dfaf801a10905ba27df8cf3aa17b36ea5149a'/>
<id>093dfaf801a10905ba27df8cf3aa17b36ea5149a</id>
<content type='text'>
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).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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).
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix global leaks</title>
<updated>2010-12-05T00:36:21+00:00</updated>
<author>
<name>Ryan Dahl</name>
<email>ry@tinyclouds.org</email>
</author>
<published>2010-12-05T00:11:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node.git/commit/?id=92789b16e594f806dbdaee1a65c1d8440b96fc65'/>
<id>92789b16e594f806dbdaee1a65c1d8440b96fc65</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix global leaks</title>
<updated>2010-12-04T23:58:50+00:00</updated>
<author>
<name>Ryan Dahl</name>
<email>ry@tinyclouds.org</email>
</author>
<published>2010-12-04T23:20:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node.git/commit/?id=a0159b4b295f69e5653ef96d88de579746dcfdc8'/>
<id>a0159b4b295f69e5653ef96d88de579746dcfdc8</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Migrated from sys.p to console.dir</title>
<updated>2010-10-11T23:21:45+00:00</updated>
<author>
<name>Micheil Smith</name>
<email>micheil@brandedcode.com</email>
</author>
<published>2010-10-11T23:09:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node.git/commit/?id=372a7c9a3ef377f203ecf453042101ee73328c88'/>
<id>372a7c9a3ef377f203ecf453042101ee73328c88</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Safe constructors: http.Server and http.Client</title>
<updated>2010-08-27T20:58:52+00:00</updated>
<author>
<name>Ryan Dahl</name>
<email>ry@tinyclouds.org</email>
</author>
<published>2010-08-27T20:58:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node.git/commit/?id=44a287987e5eb791dc1092002a35f712d3451b95'/>
<id>44a287987e5eb791dc1092002a35f712d3451b95</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
