diff options
| author | nagachika <nagachika@ruby-lang.org> | 2021-06-10 16:01:53 +0900 |
|---|---|---|
| committer | nagachika <nagachika@ruby-lang.org> | 2021-06-10 16:01:53 +0900 |
| commit | ced669aed0de19090d1ba85eb9881becb693a735 (patch) | |
| tree | 8060847e8228f6972295a11e844ddd2e73b3078f /test/ruby/test_thread.rb | |
| parent | d4f4ae599f650feb0a9da6fa486ce425dbe8a81a (diff) | |
merge revision(s) a86c6cb34df0c44973efe6578ba1cd9150af22cf:
[ruby/net-ftp] Replace Timeout.timeout with socket timeout
Timeout.timeout is inefficient since it spins up a new thread for
each invocation, use Socket.tcp's connect_timeout option instead
when we aren't using SOCKS (we can't replace Timeout.timeout
for SOCKS yet since SOCKSSocket doesn't have a connect_timeout
option).
https://github.com/ruby/net-ftp/commit/d65910132f
---
lib/net/ftp.rb | 17 +++++++++++------
1 file changed, 11 insertions(+), 6 deletions(-)
Diffstat (limited to 'test/ruby/test_thread.rb')
0 files changed, 0 insertions, 0 deletions
