Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
SOCKSSocket#close
close
ext/socket/sockssocket.c
View on GitHub ↗
static VALUE
socks_s_close(VALUE sock)
{
rb_io_t *fptr;
GetOpenFile(sock, fptr);
shutdown(fptr->fd, SHUT_RDWR);
return rb_io_close(sock);
}
Closes the SOCKS connection.