crypto: try moving read head in Peek()
authorFedor Indutny <fedor.indutny@gmail.com>
Thu, 15 Aug 2013 21:30:47 +0000 (01:30 +0400)
committerFedor Indutny <fedor.indutny@gmail.com>
Fri, 8 Nov 2013 13:01:02 +0000 (17:01 +0400)
commit014ab77276378ed9be918e77cf07fb7e6ad6b424
tree8eec01419ed20dc1db29462cac2389949b0e060f
parentea8feced871849715608cc47618d8ee1cf82742b
crypto: try moving read head in Peek()

Otherwise it might get stall (`Peek()` will return zero-length chunk)
in following situation:

1. `Write(kBufferLength)`
2. `Read(kBufferLength)`
3. `Write(anything)`
4. `Peek()` => `len=0`
src/node_crypto_bio.cc
src/node_crypto_bio.h