D18896: [plasma-nm] Refresh wifi networks as fast as possible

Valerio Pilo noreply at phabricator.kde.org
Tue Feb 12 13:15:49 GMT 2019


vpilo added a comment.


  In D18896#409742 <https://phabricator.kde.org/D18896#409742>, @jgrulich wrote:
  
  > I would keep the 15s interval, everyone does 15s. Also from what I have read, every scan drops your connection for a while, which might be a problem for bad wifi drivers, where the scan can take 15+ seconds so doing this more often is not a good idea. Other thing I would change is to try to repeat the scan if it fails only for the first time (when you open the applet), then I don't think it's necessary to keep spamming NetworkManager with our requests.
  
  
  Everyone using 15 seconds for a timeout doesn't mean it's good for the users... Anyways, why shouldn't we be doing an attempt every 2 seconds? that's not a lot. I could do two things instead:
  
  - double the interval between attempts every time they fail
  - Only run the UI timer when the scan request has been successful

REPOSITORY
  R116 Plasma Network Management Applet

REVISION DETAIL
  https://phabricator.kde.org/D18896

To: vpilo, jgrulich, ngraham, #plasma
Cc: plasma-devel, jraleigh, GB_2, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20190212/34fa1983/attachment.html>


More information about the Plasma-devel mailing list