You are viewing a plain text version of this content. The canonical link for it is here.
Posted to rampart-c-dev@ws.apache.org by "nadir amra (JIRA)" <ax...@ws.apache.org> on 2010/05/04 17:54:57 UTC
[jira] Closed: (AXISCPP-1069) Use inet_addr first if hostname
begins with number to avoid gethostbyname timeout
[ https://issues.apache.org/jira/browse/AXISCPP-1069?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
nadir amra closed AXISCPP-1069.
-------------------------------
Resolution: Fixed
Fixed under revision http://svn.apache.org/viewvc?view=revision&revision=940916
> Use inet_addr first if hostname begins with number to avoid gethostbyname timeout
> ---------------------------------------------------------------------------------
>
> Key: AXISCPP-1069
> URL: https://issues.apache.org/jira/browse/AXISCPP-1069
> Project: Axis-C++
> Issue Type: Bug
> Components: Transport (axis3)
> Reporter: nadir amra
> Assignee: nadir amra
> Fix For: current (nightly)
>
>
> We currently first to gethostbyname() and if that fails, we assume it is dotted decimal an use inet_addr. Sometime gethostbyname() may take a long time (minutes) to return when host is in dotted decimal format.
> Since hostnames must begin with a character (RFC1035), I have changed the code to see if the first character is a number, and if it is, we now first will use inet_addr(), and if that fails, then we use gethostbyname().
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org