075cf8c02e
Motivation: At the moment resolve(...) does just delegate to resolveAll(...) and so will only notify the future once all records were resolved. This is wasteful as we are only interested in the first record anyway. We should notify the promise as soon as one record that matches the preferred record type is resolved. Modifications: - Introduce DnsResolveContext.isCompleteEarly(...) to be able to detect once we should early notify the promise. - Make use of this early detecting if resolve(...) is called - Remove FutureListener which could lead to IllegalReferenceCountException due double releases - add unit test Result: Be able to notify about resolved host more quickly. |
||
---|---|---|
.. | ||
src | ||
pom.xml |