cURL / Mailing Lists / curl-users / Single Mail

curl-users

[PATCH] Re: gethostbyname_r(2)

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 21 Oct 2002 15:14:17 +0200 (MET DST)

On Thu, 17 Oct 2002, Zvi Har'El wrote:

[Crossposted to the libcurlers too, for information]

> For me it is a satifactory solution - it is possible that the new glibc
> (which is a development version) has a bug in the resolver - which is
> certainly not the task of curl devlpers to fix. If I have time I'll look at
> it some more, but in the meantime curl works for me.

A friend of mine dared to let me on his Redhat 8 machine today and I had a go
at this (thanks Mats!).

It turned out that they've changed the return code for the 'buffer too small'
error. Previously it was ERANGE, but with this 2.2.93 version it clearly
returns EAGAIN.

With my attached patch, curl seems to be working fine again on Redhat 8, even
when built without IPv6 support. I did some basic tests and I've tried this
patch on my older linux machine and they all seem to work fine.

I'm interested in comments on how this works for you.

This problem is a linux-only one.

-- 
 Daniel Stenberg -- curl, cURL, Curl, CURL. Groks URLs.

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

Received on 2002-10-21