joyent/node — pull request #6604 by indutny (2013-11-29 16:29:15+00:00)
Title: tls: fix pool usage race

In rare occasions `maybeInitFinished()` could invoke `._read` on other
side, leading to the interleaved into the shared pool.

Move it out of the loop and add assertion for future tests.