Daniel Stenberg
c97d91e349
wrong, revert the previous "fix" and instead check that the fd_set pointer
...
is non-NULL before we FD_CLR
2007-09-27 12:04:56 +00:00
Daniel Stenberg
99f15b20e8
eek, fix the conditions to return on either problem instead of requiring
...
both to occur
2007-09-27 12:02:15 +00:00
Daniel Stenberg
b17bb1bb67
Steinar H. Gunderson fixed: Correctly clear sockets from the fd_set on in
...
several functions (write_tcp_data, read_tcp_data, read_udp_packets) so that
if it fails and the socket is closed the following code doesn't try to use
the file descriptor.
2007-09-22 21:23:10 +00:00
Daniel Stenberg
eee17fc854
Steinar H. Gunderson modified c-ares to now also do to DNS retries even when
...
TCP is used since there are several edge cases where it still makes sense.
2007-09-22 21:04:16 +00:00
Daniel Stenberg
2b43edc964
Brad House provided a fix for ares_save_options(): Apparently I overlooked
...
something with the ares_save_options() where it would try to do a malloc(0)
when no options of that type needed to be saved. On most platforms, this was
fine because malloc(0) doesn't actually return NULL, but on AIX it does, so
ares_save_options would return ARES_ENOMEM.
2007-09-22 20:45:50 +00:00
Daniel Stenberg
bebef9e940
added initial pkg-config file (attempt)
2007-07-26 21:56:47 +00:00
Daniel Stenberg
8af9486408
added another SEE ALSO
2007-07-14 23:01:49 +00:00
Daniel Stenberg
ad734e7b2d
Brad House's fix to hish a win32 compiler warning
2007-07-14 13:14:58 +00:00
Daniel Stenberg
278e8f3926
added Vlad's entire description of his valgrind fix
2007-07-14 13:11:36 +00:00
Daniel Stenberg
403b315a3b
Vlad Dinulescu fixed two outstanding valgrind reports
2007-07-14 13:08:50 +00:00
Daniel Stenberg
6295b70a7d
start working on 1.4.1
2007-06-08 09:01:33 +00:00
Daniel Stenberg
93bb7ef1ea
1.4.0 preps
2007-06-08 08:46:28 +00:00
Daniel Stenberg
5b992f99dc
the revert
2007-06-05 13:53:10 +00:00
Daniel Stenberg
9089e0c26c
Revered Ashish Sharma's multiple entries patch, as it caused memory madness
2007-06-04 21:33:02 +00:00
Daniel Stenberg
30294b0a67
minor edit since getting an ID seems pointless when failure happens
2007-06-04 21:26:30 +00:00
Daniel Stenberg
3ea04a6435
fix the bad bad bad mess this caused on name resolves returning more than
...
one name... Reported by James Bursa
2007-06-04 21:04:14 +00:00
Daniel Stenberg
fc5a460e0e
Brad Spencer found and fixed three flaws in the code, found with the new
...
gcc 4.2.0 warning: -Waddress
2007-06-02 20:09:23 +00:00
Daniel Stenberg
efa231bec5
Brad House fixed VS2005 compiler warnings due to time_t being 64bit.
...
He also made recent Microsoft compilers use _strdup() instead of strdup().
2007-06-02 19:48:29 +00:00
Daniel Stenberg
4e27354b82
Ashish Sharma provided a patch for supporting multiple entries in the
...
/etc/hosts file. Patch edited for coding style and functionality by me
(Daniel).
2007-06-02 19:42:25 +00:00
Daniel Stenberg
1ea96cf8dd
ares_destroy_options() and ares_save_options() man pages by Brad House
2007-06-02 19:32:30 +00:00
Daniel Stenberg
e5929805f5
make next version 1.4.0
2007-05-30 21:45:56 +00:00
Daniel Stenberg
49fdeb1de4
first take at detecting a random device and seeding the random key using data
...
from it in randomize_key()
2007-05-30 21:37:17 +00:00
Daniel Stenberg
7a77f24d26
Shmulik Regev brought cryptographically secure transaction IDs
2007-05-30 21:11:10 +00:00
Daniel Stenberg
f1440b2405
Brad House added ares_save_options() and ares_destroy_options() that can be
...
used to keep options for later re-usal when ares_init_options() is used.
2007-05-30 20:49:14 +00:00
Daniel Stenberg
8c35c65fc7
added ares_process_fd() to allow applications to ask for processing on
...
specific sockets and thus avoiding select() and associated functions/macros.
This function will be used by upcoming libcurl releases for this very
reason. It also made me export the ares_socket_t type in the public ares.h
header file, since ares_process_fd() uses that type for two of the arguments.
2007-05-30 12:58:47 +00:00
Daniel Stenberg
557aad7b02
Ravi Pratap fixed a flaw in the init_by_resolv_conf() function for windows
...
that could cause it to return a bad return code.
2007-05-25 21:11:28 +00:00
Daniel Stenberg
c1bc4c19be
Vlad Dinulescu added ares_parse_ns_reply()
2007-02-19 14:06:11 +00:00
Daniel Stenberg
6a59182e81
Michael Wallner fixed this problem: When I set domains in the options
...
struct, and there are domain/search entries in /etc/resolv.conf, the domains
of the options struct will be overridden.
2006-11-22 22:54:41 +00:00
Daniel Stenberg
bc76d02bc3
Install ares_dns.h too
2006-11-22 22:51:01 +00:00
Daniel Stenberg
4a23aef23c
we did 1.3.2 and are now on the 1.3.3 track!
2006-11-11 22:23:48 +00:00
Daniel Stenberg
fadf4bfa08
mention the areslib.dsp fix
2006-11-05 23:11:22 +00:00
Daniel Stenberg
5617c371e7
add the recent crowd of contributors
2006-11-05 23:11:07 +00:00
Daniel Stenberg
776108dc80
Andreas Rieke fixed back the correct line endings!
2006-11-05 23:08:11 +00:00
Daniel Stenberg
a39a54189b
stand clear for release 1.3.2
2006-11-03 10:47:35 +00:00
Daniel Stenberg
7ea2bc0db7
Andreas Rieke added missing file and changed line endings
2006-11-03 10:41:33 +00:00
Daniel Stenberg
5d9bf10232
Tor's spell fixes
2006-10-18 12:59:02 +00:00
Daniel Stenberg
8df5b67ab0
Prevent ares_getsock() to overflow if more than 16 sockets are used.
2006-10-13 21:25:11 +00:00
Daniel Stenberg
04cb824483
avoid an overflow if an excessive amount of servers are used
2006-10-12 16:47:50 +00:00
Daniel Stenberg
d3439e3332
- Guilherme Balena Versiani: I noted a strange BUG in Win32 port
...
(ares_init.c/get_iphlpapi_dns_info() function): when I disable the network
by hand or disconnect the network cable in Windows 2000 or Windows XP, my
application gets 127.0.0.1 as the only name server. The problem comes from
'GetNetworkParams' function, that returns the empty string "" as the only
name server in that case. Moreover, the Windows implementation of
inet_addr() returns INADDR_LOOPBACK instead of INADDR_NONE.
2006-09-11 20:25:13 +00:00
Daniel Stenberg
1bec3073dc
Brad Spencer did
...
o made ares_version.h use extern "C" for c++ compilers
o fixed compiler warnings in ares_getnameinfo.c
o fixed a buffer position init for TCP reads
2006-08-29 15:17:47 +00:00
Daniel Stenberg
70a27de3c5
add missing man page
2006-08-14 07:21:33 +00:00
Daniel Stenberg
19fb255f9e
Ravi Pratap fixed ares_getsock() to actually return the proper bitmap and
...
not always zero!
2006-08-03 18:20:45 +00:00
Daniel Stenberg
ca324db453
include config-win32.h in release archives
2006-06-26 08:56:04 +00:00
Daniel Stenberg
0e07499e96
1.3.1
2006-06-24 18:29:18 +00:00
Daniel Stenberg
2fc66d7b01
Copied the NO_UNDEFINED magic from libcurl to make this build fine again with
...
libtool cross-compiled on linux with mingw32
2006-05-24 23:02:51 +00:00
Daniel Stenberg
e75c876ac5
Bram Matthys brought my attention to a libtool peculiarity where detecting
...
things such as C++ compiler actually is a bad thing and since we don't need
that detection I added a work-around, much inspired by a previous patch by
Paolo Bonzini. This also shortens the configure script quite a lot.
2006-05-10 08:03:54 +00:00
Daniel Stenberg
c8878fb584
two more contributors
2006-05-05 21:08:09 +00:00
Daniel Stenberg
f4f25e3282
moved the curl_off_t check to within the --enable-debug block where it belongs since it is a somewhat ugly hack
2006-05-03 22:39:49 +00:00
Daniel Stenberg
22e34b53e4
Nick Mathewson added the ARES_OPT_SOCK_STATE_CB option that when set makes
...
c-ares call a callback on socket state changes. A better way than the
ares_getsock() to get full control over the socket state.
2006-05-03 06:11:44 +00:00
Daniel Stenberg
de713cb37d
Alexander Lazic improved the getservbyport_r() configure check.
2006-01-09 08:31:48 +00:00
Daniel Stenberg
7a03bdaf34
buildconf fixes
2006-01-06 22:59:34 +00:00
Daniel Stenberg
acf6edf7e9
Use $ACLOCAL_FLAGS too, pointed out by Alexander Lazic
2006-01-06 22:07:51 +00:00
Daniel Stenberg
d07656e76d
James Bursa fixes: find the hosts file on RISC OS, and made it build with
...
newer gcc versions that no longer defines "riscos".
2006-01-05 07:57:32 +00:00
Daniel Stenberg
dccda3c237
Yang Tse has been helping out
2006-01-05 07:56:43 +00:00
Daniel Stenberg
dc59499966
we're working on 1.3.1 (or more)
2006-01-02 09:13:56 +00:00
Daniel Stenberg
ab18b895e8
This function was added in c-ares [version]
2005-12-22 15:31:32 +00:00
Daniel Stenberg
7b650b80c1
added ares_getsock()
2005-12-22 15:29:12 +00:00
Daniel Stenberg
8d63eb75a9
Added ares_getsock() to extract sockets to wait for action on, without being
...
limited to select().
2005-12-22 15:27:41 +00:00
Daniel Stenberg
05c21d8684
fix closing parentheses
2005-12-20 08:51:48 +00:00
Daniel Stenberg
a08aed3147
use AC_PROG_LIBTOOL after AC_DISABLE_SHARED
2005-12-20 08:51:34 +00:00
Daniel Stenberg
513f448061
Yang Tse fixed compiler warnings
2005-11-25 22:45:06 +00:00
Daniel Stenberg
006698a1ed
read_tcp_data() fix to get the proper buffer pointer and size
2005-11-25 22:23:28 +00:00
Daniel Stenberg
c24e66c057
Yang Tse: fixed compiler warnings
2005-11-25 22:14:53 +00:00
Daniel Stenberg
1638613891
Change based on Yang Tse's excellent fix to reduce buffer overflow risk and
...
fixing a compiler warning in the append_scopeid() function.
2005-11-25 22:14:28 +00:00
Daniel Stenberg
fab5b5e116
avoid doing #if an a predef symbol that might not be defined
2005-11-24 23:03:25 +00:00
Daniel Stenberg
f06e65fa65
check for and use winsock2.h instead of winsock.h and I fixed a typo in the
...
ifdefs where . was used instead of _!
2005-11-16 07:12:37 +00:00
Daniel Stenberg
264f2a4cf1
include ws2tcpip.h in an attempt to detect some of the ipv6 structs better
...
in mingw builds
2005-11-15 14:39:52 +00:00
Daniel Stenberg
374bc69deb
Detect big/little endian in the configure script and adjust the ares_dns.h
...
macros accordingly.
2005-11-14 23:14:54 +00:00
Daniel Stenberg
617c3100f5
removed files no longer existing
2005-11-12 00:01:50 +00:00
Daniel Stenberg
876ea69745
Ok, based on the online docs for AIX'es getservbyport_r() I adjusted to code
...
to do (what I believe is) "right". See docs on:
http://publib.boulder.ibm.com/infocenter/pseries/index.jsp?topic=/com.ibm.aix.doc/libs/commtrf2/getservbyport_r.htm
2005-10-03 10:12:06 +00:00
Daniel Stenberg
209e8147a1
1 - attempted fix of uninitialized variable
...
2 - indented and edited to fit better within 80 columns
3 - fixed possible buffer overflow in the service name lookup function
2005-09-21 10:45:25 +00:00
Daniel Stenberg
af27d8743d
simplified the sin6_scope_id test and removed some left-overs from the previous
...
way of detecting it
2005-09-21 09:10:17 +00:00
Daniel Stenberg
cbe5ec4597
fixed the check for the addrinfo struct
2005-09-21 09:01:44 +00:00
Daniel Stenberg
8df407ed7d
mention the configure change
2005-09-15 19:23:31 +00:00
Daniel Stenberg
f22a6589bf
Use the AC_CHECK_MEMBER() function for check struct members instead of
...
inventing and providing our own. Hopefully this solves a HP-UX 11.00 problem.
2005-09-10 21:09:44 +00:00
Daniel Stenberg
7885baf74d
1.3.0 coming just up
2005-08-29 07:03:05 +00:00
Daniel Stenberg
86f22ffb66
well hit me, that wasn't possible, use 1:0:0 anyway...
2005-08-21 21:27:19 +00:00
Daniel Stenberg
d8263771f5
modified the version-info, we only added functions
2005-08-21 21:25:42 +00:00
Daniel Stenberg
59f2a579bc
increase version info
2005-08-21 21:25:07 +00:00
Daniel Stenberg
a8bb249d07
Alfredo Tupone provided a fix for the Windows code in get_iphlpapi_dns_info()
...
when getting the DNS server etc.
2005-08-21 21:09:44 +00:00
Daniel Stenberg
b117fef909
detabified
2005-08-18 08:48:31 +00:00
Daniel Stenberg
be551e6a00
killed trailing whitespace, narrowed a few lines to 80 cols
2005-08-04 08:07:44 +00:00
Daniel Stenberg
01118be8ae
FIONBIO is in sys/ioctl.h on AIX
2005-06-03 07:39:18 +00:00
Daniel Stenberg
c94c020c96
sigh, define TRUE if not already
2005-06-02 21:10:21 +00:00
Daniel Stenberg
4e9c5b2dbb
William Ahern:
...
Make UDP sockets non-blocking. I've confirmed that at least on Linux 2.4 a
read event can come back from poll() on a valid SOCK_DGRAM socket but
recv(2) will still block. This patch doesn't ignore EAGAIN in
read_udp_packets(), though maybe it should. (This patch was edited by Daniel
Stenberg and a new configure test was added (imported from curl's configure)
to properly detect what non-blocking socket approach to use.)
2005-06-02 11:58:04 +00:00
Daniel Stenberg
ae75ee1423
William Ahern:
...
I'm not quite sure how this was happening, but I've been seeing PTR queries
which seem to return empty responses. At least, they were empty when calling
ares_expand_name() on the record. Here's a patch which guarantees to
NUL-terminate the expanded name. The old behavior failed to NUL-terminate if
len was 0, and this was causing strlen() to run past the end of the buffer
after calling ares_expand_name() and getting ARES_SUCCESS as the return
value. If q is not greater than *s then it's equal and *s is always
allocated with at least one byte.
2005-06-02 11:09:10 +00:00
Daniel Stenberg
cac87c7fc7
replaced the CRLF newlines with plain LF ones
2005-05-14 20:45:49 +00:00
Daniel Stenberg
05d8fa0a57
prevent NS_IN6ADDRSZ from getting set to zero if the struct doesn't exist
2005-05-11 06:47:09 +00:00
Daniel Stenberg
f09adbcbc2
the new functions and the upcoming ipv6 calls for the next version to become
...
1.3.0
2005-05-02 22:33:57 +00:00
Daniel Stenberg
fce7f4a6f2
Fixed for Mac OS X builds based on excellent feedback from Heinz Stockinger.
2005-04-22 15:01:02 +00:00
Daniel Stenberg
b6f7715488
added missing headers
2005-04-21 20:11:31 +00:00
Daniel Stenberg
af3a246f32
indented source to look more like other ares code,
...
added (somewhat ugly) typecasts to build warning-free on 64bit platforms (the
result of a (char *) - (char *) cannot be stored in an int universally)
2005-04-19 23:36:21 +00:00
Daniel Stenberg
86661ab646
sortlist_alloc() is never used on win32, so ifdef out it to prevent warning
2005-04-19 23:26:14 +00:00
Daniel Stenberg
c0eb11ec6c
avoid warning on windows
2005-04-16 12:30:01 +00:00
Daniel Stenberg
f2058d6a9f
add needed include
2005-04-15 21:51:46 +00:00
Daniel Stenberg
c02df16ef5
credits
2005-04-11 14:07:02 +00:00
Daniel Stenberg
2a0239bab1
include sys/types.h too when checking for headers as otherwise this breaks
...
on Solaris and FreeBSD. At least.
2005-04-08 08:48:17 +00:00
Daniel Stenberg
77244a784f
Try harder to see if arpa/nameser_compat.h REALLY is a good header file to
...
include, as it seems at least some AIX versions don't really allow it to be
include at the same time as the original nameser.h.
2005-04-07 07:38:53 +00:00
Daniel Stenberg
b41effd113
Tupone Alfredo fixed includes of arpa/nameser_compat.h to build fine on Mac OS
...
X.
2005-04-06 22:27:42 +00:00
Daniel Stenberg
3a80a3eb01
better errno constant replacements, as mentioned by Gisle Vanem
2005-04-06 21:14:58 +00:00