From: glass.saga@gmail.com
To: ruby-core@ruby-lang.org
Subject: [ruby-core:101804] [Ruby master Feature#17187] Add connect_timeout to TCPSocket
Date: Tue, 29 Dec 2020 06:56:53 +0000 (UTC) [thread overview]
Message-ID: <redmine.journal-89631.20201229065652.1913@ruby-lang.org> (raw)
In-Reply-To: redmine.issue-17187.20200925111709.1913@ruby-lang.org
Issue #17187 has been updated by Glass_saga (Masaki Matsushita).
@PhobosK
Many thanks for reporting the issue!
I merged your patch.
----------------------------------------
Feature #17187: Add connect_timeout to TCPSocket
https://bugs.ruby-lang.org/issues/17187#change-89631
* Author: Glass_saga (Masaki Matsushita)
* Status: Closed
* Priority: Normal
* Assignee: Glass_saga (Masaki Matsushita)
----------------------------------------
Add connect_timeout to TCPSocket.new in the same way as Socket.tcp.
```ruby
TCPSocket.new("192.0.2.1", 1234, connect_timeout: 1) #=> raise Errno::ETIMEDOUT
```
---Files--------------------------------
connect_timeout.patch (8.93 KB)
ruby3-socksocket-fix.patch (361 Bytes)
--
https://bugs.ruby-lang.org/
prev parent reply other threads:[~2020-12-29 6:56 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-25 11:17 [ruby-core:100139] [Ruby master Feature#17187] Add connect_timeout to TCPSocket glass.saga
2020-09-25 11:21 ` [ruby-core:100141] " glass.saga
2020-10-26 5:00 ` [ruby-core:100549] " akr
2020-10-26 5:00 ` [ruby-core:100550] " matz
2020-10-27 14:20 ` [ruby-core:100606] " glass.saga
2020-12-28 14:53 ` [ruby-core:101783] " phobosk
2020-12-29 6:56 ` glass.saga [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.ruby-lang.org/en/community/mailing-lists/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=redmine.journal-89631.20201229065652.1913@ruby-lang.org \
--to=ruby-core@ruby-lang.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).