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

curl / curl / 9307 / 23
37%
master: 37%

Build:
DEFAULT BRANCH: master
Ran 20 Nov 2018 09:01PM UTC
Files 273
Run time 15s
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

20 Nov 2018 06:58PM UTC coverage: 74.929% (+0.08%) from 74.854%
T=coverage

push

travis-ci

bagder
ares: remove fd from multi fd set when ares is about to close the fd

When using c-ares for asyn dns, the dns socket fd was silently closed
by c-ares without curl being aware. curl would then 'realize' the fd
has been removed at next call of Curl_resolver_getsock, and only then
notify the CURLMOPT_SOCKETFUNCTION to remove fd from its poll set with
CURL_POLL_REMOVE. At this point the fd is already closed.

By using ares socket state callback (ARES_OPT_SOCK_STATE_CB), this
patch allows curl to be notified that the fd is not longer needed
for neither for write nor read. At this point by calling
Curl_multi_closed we are able to notify multi with CURL_POLL_REMOVE
before the fd is actually closed by ares.

In asyn-ares.c Curl_resolver_duphandle we can't use ares_dup anymore
since it does not allow passing a different sock_state_cb_data

Closes #3238

21776 of 29062 relevant lines covered (74.93%)

766375.61 hits per line

Source Files on job 9307.23 (T=coverage)
  • Tree
  • List 0
  • Changed 83
  • Source Changed 8
  • Coverage Changed 82
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 8605
  • Travis Job 9307.23
  • 6765e6d9 on github
  • Prev Job for T=coverage on master (#9306.23)
  • Next Job for T=coverage on master (#9310.23)
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