<table><tr><td style="">sitter created this revision.<br />sitter added reviewers: ngraham, dfaure.<br />Herald added projects: Dolphin, Frameworks.<br />Herald added subscribers: kfm-devel, kde-frameworks-devel.<br />sitter requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D27902">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>previously we simply used the ip address. this is fairly awkward though.<br />
instead try to deduce a resolvable host name from the pretty name.</p>
<p>fallback order is now:<br />
$prettyName.local (probably dnssd)<br />
$prettyName (probably llmnr)<br />
$ipAddr (neither worked)</p>
<p>because this is getting fairly expensive now: use async resolution for all<br />
qhostinfos. even so, it's too blocking for my liking. it is holding up<br />
dnssd discoveries a noticeable amount.</p>
<p>the more I poke this the more I feel like we might want to refactor most of<br />
the resolver into a caching daemon. doing the discovery dance from scratch<br />
on every listDir seems largely a waste of time. although, that seems<br />
to be literally how it works on windows as well judging from the traffic.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>wsdd on linux server resolves as expected, wsd on win10 also resolves as expected</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R320 KIO Extras</div></div></div><br /><div><strong>BRANCH</strong><div><div>smb-unknowndevice-ensure-resolvability</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D27902">https://phabricator.kde.org/D27902</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>smb/wsdiscoverer.cpp</div></div></div><br /><div><strong>To: </strong>sitter, ngraham, dfaure<br /><strong>Cc: </strong>kde-frameworks-devel, kfm-devel, pberestov, iasensio, fprice, LeGast00n, cblack, MrPepe, fbampaloukas, alexde, GB_2, Codezela, feverfew, meven, michaelh, spoorun, navarromorales, firef, ngraham, andrebarros, bruns, emmanuelp, mikesomov<br /></div>