hydrus icon indicating copy to clipboard operation
hydrus copied to clipboard

Hydrus accesses internet (publicsuffix.org) despite 'pause all new network traffic' and 'always boot the client with paused network traffic' being enabled.

Open TacoMagick opened this issue 4 months ago • 3 comments

Hydrus version

v679

Qt major version

Qt 6

Operating system

Windows 11

Install method

Installer

Install and OS comments

No response

Bug description and reproduction

  1. Hydrus accesses internet (publicsuffix.org) despite 'pause all new network traffic' and 'always boot the client with paused network traffic' being enabled.

This was not observed on the past versions, however could be overlooked. It is not too important per say but one would assume the client would stop all internet access when "pause all new network traffic" is enabled.

Log output


TacoMagick avatar Jul 18 '26 23:07 TacoMagick

Thank you very much, I will check this out! I recently added a library that does intelligent parsing of domain suffixes, and it has a big internal list of TLD definitions like .co.uk and stuff. I bet it is pulling updates on its own.

hydrusnetwork avatar Jul 19 '26 21:07 hydrusnetwork

Thanks again, and well done for noticing this. The library was pulling a fresh copy of its suffix definition list from https://publicsuffix.org/list/public_suffix_list.dat. It is supposed to only ever do it once and cache it in ~/.cache/python-tldextract, but did you see it happen more often?

I've added our own copy of that file to the static dir and told the library to use that instead and not to make the cache dir either. Along the way, I made it so we use the same object and saved a little CPU time here on various domain-parsing stuff.

hydrusnetwork avatar Jul 19 '26 22:07 hydrusnetwork

I've only saw it access once, to make sure I went back and looked at Hydrus data usage over the past 30 days and saw it only use 200.9kb for publicsuffix.org. When I went and downloaded https://publicsuffix.org/list/public_suffix_list.dat myself it was around 300~kb (saving the web page from browser may have inflated it) so I'm assuming this only happened once after a update from v678 to v679. I appreciate the commitment and the quick fix! I'll be on the lookout in case this happens again. I'm closing this issue as complete as per 26d4a93

TacoMagick avatar Jul 19 '26 22:07 TacoMagick