File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
platforms/unix/plugins/SocketPlugin Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change 105105
106106
107107/*
108- As per DNS, a full DNS name cannot contain more than 255
109- characters. Due to the way this is encoded, we end up with
110- practically 253 usable bytes for any DNS FQDN out there; ther
111- cannot be a longer one.
112-
113- Note: this used ot be MAXHOSTNAMELEN. Under POSIX this might be
114- aliased to HOST_NAME_MAX (or not) and/or max out to 64 characters
115- (or not). However, that would be the max length of a DNS _Label_,
116- that is, a part of a DNS name not containing any dots. This is too
117- limiting. Therefore, we define FQDN_LEN ourselves now.
108+ As per DNS, a full DNS name cannot contain more than 255 characters. Due to
109+ the way this is encoded, we end up with practically 253 usable bytes for any
110+ DNS FQDN (Fully Qualified Domain Name) out there; ther cannot be a longer
111+ one.
112+
113+ Note: this used ot be MAXHOSTNAMELEN. Under POSIX this might be aliased to
114+ HOST_NAME_MAX (or not) and/or max out to 64 characters (or not). However,
115+ that would be the max length of a DNS _Label_, that is, a part of a DNS name
116+ not containing any dots. This is too limiting. Therefore, we define FQDN_LEN
117+ ourselves now.
118118*/
119119#define FQDN_LEN 253
120120
You can’t perform that action at this time.
0 commit comments