yauaa.netstandard icon indicating copy to clipboard operation
yauaa.netstandard copied to clipboard

Library dependency has internet activity

Open DaniilSokolyuk opened this issue 3 years ago • 3 comments

domainname-parser dependency has internet acitivy https://github.com/OrbintSoft/domainname-parser/blob/ebaa1bf0430b5412a8c51a2bcab0262e7da16df4/DomainParser.Library/TLDRulesCache.cs#L294 library must have a fallback, or settings to turn off it. In private network this cause thread pool exhaustion

image

DaniilSokolyuk avatar Jun 25 '20 23:06 DaniilSokolyuk

All threads wait at that line image

DaniilSokolyuk avatar Jun 25 '20 23:06 DaniilSokolyuk

I don't think the real problem is the internet activity, that library simply downloads an updated version of https://publicsuffix.org/list/public_suffix_list.dat. You can download the file by yourself, and the parser will work fine without internet.

In next version a will add the file as static resource, so it will be available without internet.

Anyway the real issue here is that library causes a thread pool exhaustion.

I am planning to remove that library in any case in a future version because has many issues.

This is the library: https://github.com/danesparza/domainname-parser.

Yauaa uses forked version with .NetStandard compatibility and Strong Signature, but you can refer to that repository.

A

OrbintSoft avatar Jun 26 '20 15:06 OrbintSoft

Ok, thanks. Thanks for your work, this library really good parse user agents :)

DaniilSokolyuk avatar Jun 26 '20 17:06 DaniilSokolyuk