[
https://issues.apache.org/jira/browse/GEODE-7930?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jakov Varenina updated GEODE-7930:
----------------------------------
Description:
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 FQDN according to RFC 2181:
_The DNS itself places only one restriction on the particular labels_
_that can be used to identify resource records. That one restriction_
_relates to the length of the label and the full name. The length of_
_any one label is limited to between 1 and 63 octets. A full domain_
_name is limited to 255 octets (including the separators)._
Due to above requirement the function addEP should not limit or truncate
endpoint name.
was:
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.
> 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 FQDN according to RFC 2181:
> _The DNS itself places only one restriction on the particular labels_
> _that can be used to identify resource records. That one restriction_
> _relates to the length of the label and the full name. The length of_
> _any one label is limited to between 1 and 63 octets. A full domain_
> _name is limited to 255 octets (including the separators)._
> Due to above requirement the function addEP should not limit or truncate
> endpoint name.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)