Skip to content

gutils: Don't limit the length of the host name to 99

Ting-Wei Lan requested to merge wip/lantw/dont-limit-host-name-to-99-bytes into master

It is unclear that why the size of the buffer was chosen to be 100 because the commit introduced the code didn't mention the reason. POSIX defines _POSIX_HOST_NAME_MAX to be 255 and provides a way to determine the suitable value with sysconf, so we should use it instead of hard-coding a small value.

Merge request reports