Re: DNS Request Routing
Honza Bambas <[email protected]> Wed, 19 Feb 2014 17:29:21 +0100
| Newsgroups | gmane.comp.mozilla.devel.netlib |
|---|---|
| Message-ID | <[email protected]> |
On 2/19/2014 4:31 PM, Patrick McManus wrote: >> Can this be done in JS or should it be done in C++? Would it be >> advisable to do it in C++? >> >> > the idl will let you do either. I'm not really certain whether or not you > will find the other JS libraries sufficient to the implementation in JS or > not. Make sure not to block the main thread. > I *think* nsIDNSService is called from non-main threads too. Hence, you may be forced to have a C++ thread-safe implementation (JS is limited to main thread only). Good to check before you decide. -hb-