#1882: gethostbyname failure doesn't throw an exception
----------------------+-----------------------------------------------------
Reporter: dukeleto | Owner: whiteknight
Type: RFC | Status: new
Priority: normal | Milestone: 2.11
Component: docs | Version: 2.10.0
Severity: medium | Keywords:
Lang: | Patch:
Platform: unix |
----------------------+-----------------------------------------------------
Currently in src/io/socket_unix.c there is the following code:
{{{
/* Maybe it is a hostname, try to lookup */
/* XXX Check PIO option before doing a name lookup,
* it may have been toggled off.
*/
struct hostent *he = gethostbyname(host);
/* XXX FIXME - Handle error condition better */
if (!he) {
fprintf(stderr, "gethostbyname failure [%s]\n", host);
return;
}
}}}
What kind of exception should be thrown here?
--
Ticket URL: <https://trac.parrot.org/parrot/ticket/1882>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets