You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Jakov Varenina (Jira)" <ji...@apache.org> on 2020/03/31 06:52:00 UTC

[jira] [Assigned] (GEODE-7930) Endpoint name truncated when exceeds 99 charcters causing failed connections

     [ https://issues.apache.org/jira/browse/GEODE-7930?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jakov Varenina reassigned GEODE-7930:
-------------------------------------

    Assignee: Jakov Varenina

> Endpoint name truncated when exceeds 99 charcters causing failed connections
> ----------------------------------------------------------------------------
>
>                 Key: GEODE-7930
>                 URL: https://issues.apache.org/jira/browse/GEODE-7930
>             Project: Geode
>          Issue Type: Bug
>          Components: native client
>            Reporter: Jakov Varenina
>            Assignee: Jakov Varenina
>            Priority: Major
>
> Endpoint name (e.g. server hostname) is truncated when exceeds 99 characters within function addEP resulting with failed connections.
> {code:cpp}
> TcrEndpoint* ThinClientPoolDM::addEP(ServerLocation& serverLoc) {
>   std::string serverName = serverLoc.getServerName();
>   int port = serverLoc.getPort();
>   char endpointName[100];
>   std::snprintf(endpointName, 100, "%s:%d", serverName.c_str(), port);
>   return addEP(endpointName);
> }
> {code}
> Maximum length of hostname is 255 characters according to RFC 1123.
> _Host software MUST handle host names of up to 63 characters and_
>  _SHOULD handle host names of up to 255 characters._
> Due to above requirements the function addEP should not limit or truncate endpoint name.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)