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

curl / curl / 9307
37%

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

pending completion
9307

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

Jobs
ID Job ID Ran Files Coverage
23 9307.23 (T=coverage) 20 Nov 2018 09:01PM UTC 0
74.93
Travis Job 9307.23
Source Files on build 9307
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #9307
  • 6765e6d9 on github
  • Prev Build on master (#9306)
  • Next Build on master (#9310)
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