aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/networking/host_resolver.c
Commit message (Collapse)AuthorAgeFilesLines
* host-resolver: Do not cancel threads waiting for new queries during cleanupMartin Willi2015-02-241-6/+8
| | | | | | | | | | | | | | | | While it is currently unclear why it happens, canceling threads waiting in the new_query condvar does not work as expected. The behavior is not fully reproducible: Either cancel(), join() or destroying the condvar hangs. The issue has been seen in the http-fetcher unit tests, where the stream service triggers the use of the resolver for "localhost" hosts. It is reproducible with any cleanup following a host_create_from_dns() use on a Ubuntu 14.04 x64 system. Further, the issue is related to the use of libunwind, as only builds with --enable-unwind-backtraces are affected. As we broadcast() the new_query condvar before destruction, a hard cancel() of these threads is actually not required. Instead we let these threads clean up themselves after receiving the condvar signal.
* host-resolver: Disable resolver thread cancellation by defaultMartin Willi2015-02-241-0/+3
| | | | | The default of new threads is cancellable, but the host-resolver thread code clearly expects the opposite.
* windows: Add a common Windows header for platform specific wrappersMartin Willi2014-06-031-2/+0
| | | | | Include some more basic system headers in utils.h, so we can use that common header on the different platforms.
* lib: All settings use configured namespaceTobias Brunner2014-02-121-4/+4
|
* host-resolver: don't try to resolve a plain v4 address to an IPv6 addressVolker RĂ¼melin2013-05-161-3/+17
| | | | | Suppress 'Address family for hostname not supported' errors if a IPv6 client connects in a mixed IPv4/IPv6 environment.
* Consolidated %any(6) host_t parsingMartin Willi2012-11-291-8/+0
|
* Remove numeric conversion from resolver, it is done directly in host_tMartin Willi2012-11-291-32/+0
|
* Moved debug.[ch] to utils folderTobias Brunner2012-10-241-1/+1
|
* Moved data structures to new collections subfolderTobias Brunner2012-10-241-2/+2
|
* Moved host_t and host_resolver_t to a new networking subfolderTobias Brunner2012-10-241-0/+391