From: Anders K. <an...@ci...> - 2006-03-27 17:06:19
|
Brian, I have some questions on how the asynchronous interface of dnsjava works. 1. Are upcalls performed in the same thread(s) that read data from sockets? 2. If the answer to question 1 is yes, will dnsjava become unresponsive if an application performs a blocking action (unrelated to DNS) in a dnsjava upcall? 3. If the answer to question 1 is no, that is, if dnsjava has a mechanism for delivering responses in threads that are not the ones used for reading data from sockets, what is this mechanism? 4. Will dnsjava ever use TCP for outgoing (async) requests? If so, will dnsjava write to the TCP socket in the thread that calls Resolver.sendAsync and if so, is this a blocking call? As you can hear I'm worried about various failure scenarios that are probably not typical but which we have to protect ourselves against nonetheless in the application we're building. Thanks for any light you can shed on this subject. Anders |