Project

General

Profile

Actions

Feature #12919

closed

Net::FTP does not have a default open_timeout

Added by attilagyorffy (Attila Györffy) about 8 years ago. Updated over 4 years ago.

Status:
Rejected
Assignee:
-
Target version:
-
[ruby-core:78072]
Tags:

Description

Hi Ruby Community,

I have noticed an issue on Twitter sent by a friend who reported that Ruby's FTP module does not have a default open_timeout and it could cause a process to hang (background workers, etc). Despite not having created a test case for this, I've seen in the docs that apparently this is in fact the case: http://ruby-doc.org/stdlib-2.0.0/libdoc/net/ftp/rdoc/Net/FTP.html#open_timeout=

I'm opening this issue for further discussion. In my honest opinion, a reasonable default (not nil) would be a good idea to have so that we can make sure processes won't hang.

What do you think?

Updated by shugo (Shugo Maeda) almost 8 years ago

Attila Györffy wrote:

I'm opening this issue for further discussion. In my honest opinion, a reasonable default (not nil) would be a good idea to have so that we can make sure processes won't hang.

I have the following concerns:

  • What is "a reasonable default" value?
  • Setting timeout introduces overhead as described in #12928.

Updated by mame (Yusuke Endoh) over 4 years ago

  • Tracker changed from Bug to Feature
  • Status changed from Open to Rejected
  • Backport deleted (2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN)

Looks not a bug. And there is no discussion from OP for three years. Closing the ticket.

Actions

Also available in: Atom PDF

Like0
Like0Like0