Project

General

Profile

ActionsLike0

Bug #2291

closed

Net::FTPでソケットをオープンする前にbinary=を呼び出すと落ちる

Added by matsuda (Akira Matsuda) over 15 years ago. Updated almost 14 years ago.

Status:
Closed
Target version:
ruby -v:
ruby 1.9.2dev (2009-09-29 trunk 25153) [i386-darwin9.8.0]
Backport:
[ruby-dev:39548]

Description

=begin
% cat ftp_binary.rb
require 'net/ftp'
f = Net::FTP.new
f.binary = true

% ruby ftp_binary.rb
/Users/matsuda/ruby_trunk/lib/ruby/1.9.1/net/ftp.rb:224:in putline': undefined method write' for nil:NilClass (NoMethodError)
from /Users/matsuda/ruby_trunk/lib/ruby/1.9.1/net/ftp.rb:291:in block in voidcmd' from /Users/matsuda/ruby_trunk/lib/ruby/1.9.1/monitor.rb:190:in mon_synchronize'
from /Users/matsuda/ruby_trunk/lib/ruby/1.9.1/net/ftp.rb:290:in voidcmd' from /Users/matsuda/ruby_trunk/lib/ruby/1.9.1/net/ftp.rb:146:in binary='
from ftp_binary.rb:3:in `'
=end

#1

Updated by naruse (Yui NARUSE) over 15 years ago

  • Status changed from Open to Assigned
  • Assignee set to shugo (Shugo Maeda)
#2

Updated by naruse (Yui NARUSE) over 15 years ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100
#3

Updated by shugo (Shugo Maeda) over 15 years ago

  • Status changed from Closed to Assigned
#9

Updated by shugo (Shugo Maeda) over 15 years ago

  • Status changed from Assigned to Closed
ActionsLike0

Also available in: Atom PDF