You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Dave Barnes (Jira)" <ji...@apache.org> on 2020/09/10 15:52:16 UTC
[jira] [Closed] (GEODE-7930) Endpoint name truncated when exceeds
99 characters causing failed connections
[ https://issues.apache.org/jira/browse/GEODE-7930?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dave Barnes closed GEODE-7930.
------------------------------
> Endpoint name truncated when exceeds 99 characters 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
> Fix For: 1.13.0
>
> Attachments: locator.log, native_client_error.log, server.log
>
> Time Spent: 1h 20m
> Remaining Estimate: 0h
>
> When subscription is "enabled" in native client then the server endpoint name (host name + port) is truncated if exceeds 99 characters resulting with failed connections towards servers (see logs in attachment). When subscription is "disabled" everything worked fine for what I tested. Also I performed some tests with java client and haven't found such limitation on endpoint name length.
> Endpoint name (e.g. server host name) + port is truncated within function addEP:
> {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)