summaryrefslogtreecommitdiff
path: root/server/resolv
AgeCommit message (Collapse)AuthorFilesLines
2010-02-18Rename server/ directory to src/Stephen Gallagher9-1911/+0
Also update BUILD.txt
2010-01-22Handle IPv6 addresses with the async resolverStephen Gallagher2-6/+59
2010-01-22Fix async resolver integration with teventStephen Gallagher1-7/+19
We weren't properly setting read/write flags on the tevent fd events, so c-ares was unable to perform bidirectional communication for TCP DNS (in situations where the response is too large to send by UDP)
2010-01-20Fix timeout memory heirarchyStephen Gallagher1-2/+14
This fixes two issues: 1) Eliminates a double-free when a timeout occurs (we were freeing the running event context) 2) Ensures that we don't continue to schedule unnecessary timeout checks
2010-01-14Make sure callbacks never retry when ares channel is destroyedMartin Nagy1-4/+12
When the resolv context destructor is invoked, the callbacks for pending queries could have been called with ARES_EDESTRUCTION and try to re-send the query.
2010-01-14Don't recursively call ares_process_fd() from fd_event()Martin Nagy1-17/+0
Since ares_process_fd() might also cause fd_event() to be called again, calling ares_process_fd() is unwise. The bug will cause a crash if c-ares is using tcp connections. Fixes: #384
2010-01-14Make periodic checks for DNS timeoutsMartin Nagy1-1/+82
Since we only call c-ares to process input on FD when there is an activity on them, c-ares never gets a chance to react to a timed-out request. This caused SSSD to hang. Fixes: #381
2010-01-14Explicitly set async DNS timeoutStephen Gallagher2-3/+12
We will allow 5s per DNS server, no retries.
2010-01-12Re-create c-ares channels if /etc/resolv.conf is modifiedMartin Nagy2-13/+84
Fixes: #378
2009-12-09Add some debugging statements to fail_over and resolverMartin Nagy1-3/+9
These were very useful for debugging and hopefully still will be in the future.
2009-12-09Don't build the SRV and TXT parsing code except for testsJakub Hrozek1-0/+6
2009-12-09Import ares 1.7.0 helpersJakub Hrozek8-95/+363
2009-12-09Change ares usage to be c-ares 1.7.0 compatibleJakub Hrozek2-73/+90
* Rename structure accordingly to ares upstream * Use new ares parsing functions in the wrappers * fix tests for ares 1.7
2009-11-18Failover fixes and additionsSimo Sorce1-1/+1
2009-11-09Fix tevent_req error checking.Simo Sorce1-13/+3
When possible using a macro that correctly deals with tstate
2009-11-09Check return, zero free hostent, adhere to styleSimo Sorce2-8/+11
2009-11-06Fix a bad free in async_resolv.cMartin Nagy1-6/+0
Also remove redundant talloc_free()'s. They are not needed since their parent should be freed right after calling the _recv() function.
2009-10-22Use talloc to copy data from c-aresMartin Nagy2-27/+212
C-ares either returned a malloc-ed memory or it automatically freed the memory after out callback has returned. This patch will make sure that anything that the resolv_* function return is allocated by talloc and can be safely freed by talloc_free(). This will break the resolv tests to the point they will not be compilable. This will be addressed in a later patch with other improvements to the tests.
2009-10-22Resolver: Use talloc_get_type() for type safetyMartin Nagy1-5/+5
2009-09-11Add copyright noticesJakub Hrozek2-0/+40
Fixes: #138
2009-08-05Consolidate tevent helpersJakub Hrozek1-16/+0
2009-07-24Add ares helpers into sssdJakub Hrozek7-0/+465
This patch adds ares parsing functions that are not yet upstreamed together with a private ares header file (ares_dns.h) that contains some necessary macros for parsing common structures in the replies. Users of these two parsing functions must also include the header files ares_parse_{srv,txt}_reply.h that contain the function and structures declarations that should eventually end up in upstream ares.h
2009-07-24Async DNS integrationJakub Hrozek2-0/+724
Integrates the c-ares asynchronous resolved library into SSSD.