Project

General

Profile

Actions

Bug #11260

closed

[PATCH] Net::FTP keeps a TCPServer opened when sending the data port fails

Added by Eregon (Benoit Daloze) almost 9 years ago. Updated over 8 years ago.

Status:
Closed
Target version:
-
ruby -v:
ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-linux]
[ruby-core:69577]

Description

Net::FTP will keep the TCPServer created in makeport opened if sendport fails.
The patch sends the port in its (only) caller instead, so the TCPServer is appropriately closed no matter the outcome.

This was detected with RubySpec and a leak checker based on test/lib/leakchecker.rb.


Files

Updated by shugo (Shugo Maeda) almost 9 years ago

  • Status changed from Open to Assigned
  • Assignee changed from shugo (Shugo Maeda) to Eregon (Benoit Daloze)

Benoit Daloze wrote:

@shugo (Shugo Maeda), can I commit this?

The patch looks fine. Please commit it.

Updated by Eregon (Benoit Daloze) almost 9 years ago

  • Status changed from Assigned to Closed

Thanks, committed in r51046.

Updated by usa (Usaku NAKAMURA) almost 9 years ago

  • Backport changed from 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN to 2.0.0: WONTFIX, 2.1: REQUIRED, 2.2: REQUIRED
Actions #5

Updated by nagachika (Tomoyuki Chikanaga) over 8 years ago

  • Backport changed from 2.0.0: WONTFIX, 2.1: REQUIRED, 2.2: REQUIRED to 2.0.0: WONTFIX, 2.1: REQUIRED, 2.2: DONE

Backported into ruby_2_2 branch at r51556.

Actions #6

Updated by usa (Usaku NAKAMURA) over 8 years ago

  • Backport changed from 2.0.0: WONTFIX, 2.1: REQUIRED, 2.2: DONE to 2.0.0: WONTFIX, 2.1: DONE, 2.2: DONE

ruby_2_1 r51610 merged revision(s) 51046.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0