summaryrefslogtreecommitdiffstats
path: root/server/resolv
Commit message (Collapse)AuthorAgeFilesLines
* Rename server/ directory to src/Stephen Gallagher2010-02-189-1911/+0
| | | | Also update BUILD.txt
* Handle IPv6 addresses with the async resolverStephen Gallagher2010-01-222-6/+59
|
* Fix async resolver integration with teventStephen Gallagher2010-01-221-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)
* Fix timeout memory heirarchyStephen Gallagher2010-01-201-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
* Make sure callbacks never retry when ares channel is destroyedMartin Nagy2010-01-141-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.
* Don't recursively call ares_process_fd() from fd_event()Martin Nagy2010-01-141-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
* Make periodic checks for DNS timeoutsMartin Nagy2010-01-141-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
* Explicitly set async DNS timeoutStephen Gallagher2010-01-142-3/+12
| | | | We will allow 5s per DNS server, no retries.
* Re-create c-ares channels if /etc/resolv.conf is modifiedMartin Nagy2010-01-122-13/+84
| | | | Fixes: #378
* Add some debugging statements to fail_over and resolverMartin Nagy2009-12-091-3/+9
| | | | | These were very useful for debugging and hopefully still will be in the future.
* Don't build the SRV and TXT parsing code except for testsJakub Hrozek2009-12-091-0/+6
|
* Import ares 1.7.0 helpersJakub Hrozek2009-12-098-95/+363
|
* Change ares usage to be c-ares 1.7.0 compatibleJakub Hrozek2009-12-092-73/+90
| | | | | | * Rename structure accordingly to ares upstream * Use new ares parsing functions in the wrappers * fix tests for ares 1.7
* Failover fixes and additionsSimo Sorce2009-11-181-1/+1
|
* Fix tevent_req error checking.Simo Sorce2009-11-091-13/+3
| | | | When possible using a macro that correctly deals with tstate
* Check return, zero free hostent, adhere to styleSimo Sorce2009-11-092-8/+11
|
* Fix a bad free in async_resolv.cMartin Nagy2009-11-061-6/+0
| | | | | Also remove redundant talloc_free()'s. They are not needed since their parent should be freed right after calling the _recv() function.
* Use talloc to copy data from c-aresMartin Nagy2009-10-222-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.
* Resolver: Use talloc_get_type() for type safetyMartin Nagy2009-10-221-5/+5
|
* Add copyright noticesJakub Hrozek2009-09-112-0/+40
| | | | Fixes: #138
* Consolidate tevent helpersJakub Hrozek2009-08-051-16/+0
|
* Add ares helpers into sssdJakub Hrozek2009-07-247-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
* Async DNS integrationJakub Hrozek2009-07-242-0/+724
Integrates the c-ares asynchronous resolved library into SSSD.