on Solaris SO_REUSEADDR allow multiple UDP sockets bound to the same port
(seemingly for the old multicast extension).
committing it at my discretion as it's simple and the problem made buildbot
fail.
struct addrinfo hints, *res;
memset(&hints, 0, sizeof(hints));
hints.ai_family = AF_UNSPEC;
- hints.ai_socktype = SOCK_DGRAM;
- hints.ai_protocol = IPPROTO_UDP;
+ hints.ai_socktype = SOCK_STREAM;
+ hints.ai_protocol = IPPROTO_TCP;
hints.ai_flags = AI_NUMERICHOST | AI_NUMERICSERV;
const int error = getaddrinfo(address, port, &hints, &res);
if (error != 0) {