The Unix ipv6 logic translates the lookup error number into a string
and prints to the console.
If the name is "" an empty string, then yes it's EAI_NONAME
see
man 3 gai_strerror
GAI_STRERROR(3) BSD Library Functions Manual
GAI_STRERROR(3)
NAME
gai_strerror -- get error message string from EAI_xxx error code
SYNOPSIS
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
const char *
gai_strerror(int ecode);
DESCRIPTION
The gai_strerror() function returns an error message string
corresponding to the error code returned by getaddrinfo(3) or
getnameinfo(3).
The following error codes and their meaning are defined in
<netdb.h>:
EAI_AGAIN temporary failure in name resolution
EAI_BADFLAGS invalid value for ai_flags
EAI_BADHINTS invalid value for hints
EAI_FAIL non-recoverable failure in name resolution
EAI_FAMILY ai_family not supported
EAI_MEMORY memory allocation failure
EAI_NONAME hostname or servname not provided, or not
known
EAI_PROTOCOL resolved protocol is unknown
EAI_SERVICE servname not supported for ai_socktype
EAI_SOCKTYPE ai_socktype not supported
EAI_SYSTEM system error returned in errno
On 30-Apr-09, at 10:27 PM, Alexandre Bergel wrote:
> On a 293/OSX, I get a primitive failed.
> When (HTTPSocket>>httpGetDocument: url args: args accept: mimeType
> request: requestString)
> calls
> (NetNameResolver addressForName: connectToHost timeout: 20.)
>
> connectToHost = '', which makes the primitive fail.
>
> Alexandre
>
>
> On 1 May 2009, at 00:11, Nicolas Cellier wrote:
>
>> With a simpler command, I reproduced the MC failure, but not the
>> bunch
>> of opened change log:
>>
>> 1) ScriptLoader new installingInstaller
>> 2) Installer lukas install: 'OB-Regex'.
>>
>> I get this interesting message on the XTerm console:
>>
>> getaddrinfo: Name or service not known
--
=
=
=
========================================================================
John M. McIntosh <[email protected]> Twitter:
squeaker68882
Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com
=
=
=
========================================================================
_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project