Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Domains and connection pools
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  Messages 26 - 28 of 28 - Collapse all  -  Translate all to Translated (View all originals) < Older 
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Jake Verbaten  
View profile  
 More options Nov 14 2012, 10:18 pm
From: Jake Verbaten <rayn...@gmail.com>
Date: Wed, 14 Nov 2012 19:17:42 -0800
Local: Wed, Nov 14 2012 10:17 pm
Subject: Re: [nodejs] Domains and connection pools

So it fails because `console.log(err.errors[0])` throws a `err` does not
have `errors[0]` property.

Is this not a bug in thirdParty because it calls the callback before it
disposes the domain?

cc izs: this should probably be fixed or documented at least.

On Wed, Nov 14, 2012 at 6:37 PM, Forrest L Norvell <forr...@newrelic.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Forrest L Norvell  
View profile  
 More options Nov 14 2012, 10:33 pm
From: Forrest L Norvell <forr...@newrelic.com>
Date: Wed, 14 Nov 2012 19:32:36 -0800
Local: Wed, Nov 14 2012 10:32 pm
Subject: Re: [nodejs] Domains and connection pools

I don't want to speak on Adam's behalf, but I think his point was that with trycatch the error ends up in the right place, whether or not the error is the fault of the devs or a third party module. That seems like a good base-level requirement for domains as well.

I'll see if I can put together a pull request to address this.

F

On Nov 14, 2012, at 19:17, Jake Verbaten <rayn...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Adam Crabtree  
View profile  
 More options Nov 15 2012, 3:05 pm
From: Adam Crabtree <atcrabt...@gmail.com>
Date: Thu, 15 Nov 2012 12:05:08 -0800
Local: Thurs, Nov 15 2012 3:05 pm
Subject: Re: [nodejs] Domains and connection pools

Forrest is exactly right. I would add to it, it's not just about it ending
up in the right place, but about it getting caught at all, though in this
context they're pretty much the same thing.

Ya, sorry, it really wasn't necessarily the best example, but often
presenting reasons for why an API is failing, in order to convince someone
that it is actually a bug, you must first convince them it's a legitimate
use case. The result is a pretty strained example (though in real code, it
comes up regularly), but I was just trying to provide an example of when
someone might generate a new error in a callback after the originating
function returned an error.

On Wed, Nov 14, 2012 at 7:32 PM, Forrest L Norvell <forr...@newrelic.com>wrote:

--
Better a little with righteousness
       than much gain with injustice.
Proverbs 16:8

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages < Older 
« Back to Discussions « Newer topic     Older topic »