• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

c-ares / c-ares / #296
92%

Build:
DEFAULT BRANCH: main
Ran 16 Nov 2023 05:29PM UTC
Jobs 1
Files 145
Run time 14s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

16 Nov 2023 05:19PM UTC coverage: 82.975% (-0.06%) from 83.031%
#296

push

travis-ci

bradh352
Fix /etc/hosts processing performance with all entries using same IP address

Some users use blacklist files like https://github.com/StevenBlack/hosts which
can contain 200k+ host entries all pointing to 0.0.0.0.  Due to the merge
logic in the new hosts processor, all those entries will be associated as
aliases for the same ip address.

The first issue is that it attempts to check the status of all the hosts for
the merged entry, when it should only be checking the new hosts added to the
merged entry, so this caused exponential time as the entries got longer.

The next issue is if searching for one of those hosts, it would append all
the matches as cnames/aliases, but there is zero use for 200k aliases
being appended to a lookup, so we are artificially capping this to 100.

Bug report reference: https://bugs.gentoo.org/917400

Fix By: Brad House (@bradh352)

13 of 15 new or added lines in 1 file covered. (86.67%)

5 existing lines in 1 file now uncovered.

7291 of 8787 relevant lines covered (82.97%)

1984.29 hits per line

Jobs
ID Job ID Ran Files Coverage
1 #296.1 16 Nov 2023 05:29PM UTC 0
82.97
Source Files on build #296
Detailed source file information is not available for this build.
  • Back to Repo
  • a3631763 on github
  • Prev Build on main
  • Next Build on main
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc