The bug has been fixed on v0.7.0. 在 2012年2月7日星期二,Denis Washington 写道:
> Hi, > > I am trying to implement authenticated file upload, which means that I > want to check any request before reading in the POST body. As the checking > requires IO, though, I cannot (and don't want to) listen to the request's > 'data' event before the 'request' handler terminates. > > Now I thought that request.pause() is just what I need, but sadly I found > out that it still leaves through some 'data' events. Here is the thread > from early 2011 that I found regarding that issue: > > http://groups.google.com/**group/nodejs/browse_thread/** > thread/cafe8397e3bec189<http://groups.google.com/group/nodejs/browse_thread/thread/cafe8397e3bec189> > > This doesn't seem to be fixed as of Node 0.6.10, so my question is: *will* > it be fixed? Or do I need to hack around that issue by buffering the data > that pause() lets through? I would rather not, and as I am probably not the > only one who would have to code up that exact workaround, I think it is > fair enough to say that this should be in Node core. > > Regards, > Denis Washington > > -- > Job Board: http://jobs.nodejs.org/ > Posting guidelines: https://github.com/joyent/**node/wiki/Mailing-List-** > 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 nodejs@googlegroups.com > To unsubscribe from this group, send email to > nodejs+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/**group/nodejs?hl=en?hl=en<http://groups.google.com/group/nodejs?hl=en?hl=en> > -- 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 nodejs@googlegroups.com To unsubscribe from this group, send email to nodejs+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en