你这样做每次请求都多余了一次nexttick等待
On Mar 20, 2013 9:40 AM, "windyrobin" <notifications@github.com> wrote:

> In lib/irequest.js:
>
> > +  }
> > +  body  = buildData(body);
> > +  if (body.length) {
> > +    options.headers['Content-Length'] = body.length;
> > +  }
> > +
> > +  var timer = null;
> > +  var tmout = options.timeout || 15000;
> > +
> > +  function onceCb() {
> > +    if (timer) {
> > +      clearTimeout(timer);
> > +      timer = null;
> > +
> > +      var args = arguments;
> > +      process.nextTick(function(){
>
> 确保快速退出，这样caller就不会被cb 中的可能存在的长时间同步代码所阻塞
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/aleafs/itier-client/pull/18/files#r3444362>
> .
>