You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fs.ReadStrem.read(size) trigger 'readable' event twice or once #9046
I'm using read(2) to read 2 byte data of a file, and I found that the read(2) method trigger readable event twice if the file I'm reading is small (in my case, the file is 14 bytes). however, if the file I read from is large (1.3 GB, in my case), the read(2) method will only trigger readable event once.
Activity
vsemozhetbyt commentedon Oct 14, 2016
See nodejs/help#198 for explanation.
errpunk commentedon Oct 17, 2016
Thanks for the help @vsemozhetbyt