Hello, I want to unshift chunk back on the source to reparse it later on.
Unfortunately this has brought me to following trap (I hope I have analyzed it correct): 1. source emits "readable" 2. A listener calls next.read(0) to start reading 3. next._read() calls "source.unshift(chunk)" 4. because source is currently freeing its buffer it does not emit "readable" 5. without a new "readable" next does not parse anything again until we manually call "next.read(0)" again Here is a gist which describes this: https://gist.github.com/bodokaiser/5280367 What else could I do to push back chunk I want to parse on the next "_read"? Bodo -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
