Project

General

Profile

Actions

Bug #14323

closed

net/ftp: fix FrozenError in BufferedSocket

Added by normalperson (Eric Wong) over 6 years ago. Updated about 6 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:84675]

Description

net/ftp: fix FrozenError in BufferedSocket

I noticed this bug while working on something else with
RUBYOPT=-d on, existing test cases all passed with it.

Note: I use String.new because it is the local style, here,
I prefer +'' (or ''.b, for a future commit)

  • lib/net/ftp.rb (BufferedSocket#read): use String.new
  • test/net/ftp/test_buffered_socket.rb (test_read_nil): new test

Files

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0