[ https://issues.apache.org/jira/browse/GEODE-7930?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17076932#comment-17076932 ]
ASF subversion and git services commented on GEODE-7930: -------------------------------------------------------- Commit 7dbcae083af718d02d9284c5a4a221badc34e226 in geode-native's branch refs/heads/develop from Mario Kevo [ https://gitbox.apache.org/repos/asf?p=geode-native.git;h=7dbcae0 ] Merge pull request #588 from Nordix/feature/GEODE-7930 GEODE-7930: Fix endpoint name truncation bug > 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 > Attachments: locator.log, native_client_error.log, server.log > > Time Spent: 1h > 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)