[DEBUG-ONLY] Assert failure when hostname is empty in CONNECT parameter of SOCKET device
Final Release Note
Description
This is something I accidentally noticed while merging GT.M V7.0-004 and analyzing socket test failures and trying out various things.
Debug build
YDB>open "socdev":(connect=":5000:TCP")::"SOCKET"
%YDB-F-ASSERT, Assert failed in sr_port/iosocket_create.c line 189 for expression (last_2colon > sockaddr)
The Release build gives a proper error.
Release build
YDB>open "socdev":(connect=":5000:TCP")::"SOCKET"
%YDB-E-GETADDRINFO, Error in getting address info
%YDB-I-TEXT, Name or service not known
So it is most likely a bad assert. The same issue exists in the upstream/GT.M code base too.