joyent/node — Issue #2651: No 'drain' event on https ServerResponses
Author: stash
Created: 2012-01-31 20:29:13+00:00
State: open

Not sure if this is a bug or just odd-albiet-expected behavior of TLS.

0) Node v0.6.9 on Solaris/SmartOS
1) Generate a self-signed certificate key/crt combo (e.g. `openssl req -x509 -nodes -days 700 -newkey rsa:2048 -keyout testcert.pem -out testcert.pem`)
2) get https-no-drain.js from https://gist.github.com/1712295
3) run with `node ./https-no-drain.js https`

Times out before a `drain` event is seen on the ServerResponse object.

Trying the same script via `node ./https-no-drain.js http` (i.e. using http instead of https) the `drain` event occurs for the ServerResponse.