From 78f188524f551c97b1a7a44ae13514729f1a21c7 Mon Sep 17 00:00:00 2001 From: Masaki Matsushita Date: Fri, 25 Sep 2020 16:20:18 +0900 Subject: Add connect_timeout to TCPSocket Add connect_timeout to TCPSocket.new in the same way as Socket.tcp. Closes [Feature #17187] --- ext/socket/udpsocket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/socket/udpsocket.c') diff --git a/ext/socket/udpsocket.c b/ext/socket/udpsocket.c index 6ef8242a1e..593f05522d 100644 --- a/ext/socket/udpsocket.c +++ b/ext/socket/udpsocket.c @@ -60,7 +60,7 @@ udp_connect_internal(VALUE v) rb_io_check_closed(fptr = arg->fptr); fd = fptr->fd; for (res = arg->res->ai; res; res = res->ai_next) { - if (rsock_connect(fd, res->ai_addr, res->ai_addrlen, 0) >= 0) { + if (rsock_connect(fd, res->ai_addr, res->ai_addrlen, 0, NULL) >= 0) { return Qtrue; } } -- cgit v1.2.3