Suppress warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56925 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ddfa6e2b53
commit
fa7066f818
@ -242,6 +242,7 @@ module Net
|
|||||||
raise ArgumentError,
|
raise ArgumentError,
|
||||||
"private_data_connection can be set to true only when ssl is enabled"
|
"private_data_connection can be set to true only when ssl is enabled"
|
||||||
end
|
end
|
||||||
|
@private_data_connection = false
|
||||||
end
|
end
|
||||||
@binary = true
|
@binary = true
|
||||||
if options[:passive].nil?
|
if options[:passive].nil?
|
||||||
|
@ -1009,8 +1009,8 @@ EOF
|
|||||||
commands.push(sock.gets)
|
commands.push(sock.gets)
|
||||||
sock.print("150 Opening TEXT mode data connection for foo (#{text_data.size} bytes)\r\n")
|
sock.print("150 Opening TEXT mode data connection for foo (#{text_data.size} bytes)\r\n")
|
||||||
conn = TCPSocket.new(host, port)
|
conn = TCPSocket.new(host, port)
|
||||||
text_data.each_line do |line|
|
text_data.each_line do |l|
|
||||||
conn.print(line)
|
conn.print(l)
|
||||||
end
|
end
|
||||||
conn.shutdown(Socket::SHUT_WR)
|
conn.shutdown(Socket::SHUT_WR)
|
||||||
conn.read
|
conn.read
|
||||||
@ -1072,8 +1072,8 @@ EOF
|
|||||||
commands.push(sock.gets)
|
commands.push(sock.gets)
|
||||||
sock.print("150 Opening TEXT mode data connection for foo (#{text_data.size} bytes)\r\n")
|
sock.print("150 Opening TEXT mode data connection for foo (#{text_data.size} bytes)\r\n")
|
||||||
conn = TCPSocket.new(host, port)
|
conn = TCPSocket.new(host, port)
|
||||||
text_data.each_line do |line|
|
text_data.each_line do |l|
|
||||||
conn.print(line)
|
conn.print(l)
|
||||||
end
|
end
|
||||||
conn.shutdown(Socket::SHUT_WR)
|
conn.shutdown(Socket::SHUT_WR)
|
||||||
conn.read
|
conn.read
|
||||||
@ -1132,8 +1132,8 @@ EOF
|
|||||||
commands.push(sock.gets)
|
commands.push(sock.gets)
|
||||||
sock.print("150 Opening TEXT mode data connection for foo (#{text_data.size} bytes)\r\n")
|
sock.print("150 Opening TEXT mode data connection for foo (#{text_data.size} bytes)\r\n")
|
||||||
conn = TCPSocket.new(host, port)
|
conn = TCPSocket.new(host, port)
|
||||||
text_data.each_line do |line|
|
text_data.each_line do |l|
|
||||||
conn.print(line)
|
conn.print(l)
|
||||||
end
|
end
|
||||||
conn.shutdown(Socket::SHUT_WR)
|
conn.shutdown(Socket::SHUT_WR)
|
||||||
conn.read
|
conn.read
|
||||||
@ -1666,8 +1666,8 @@ EOF
|
|||||||
sock.print("150 Here comes the directory listing.\r\n")
|
sock.print("150 Here comes the directory listing.\r\n")
|
||||||
begin
|
begin
|
||||||
conn = TCPSocket.new(host, port)
|
conn = TCPSocket.new(host, port)
|
||||||
entry_lines.each do |line|
|
entry_lines.each do |l|
|
||||||
conn.print(line, "\r\n")
|
conn.print(l, "\r\n")
|
||||||
end
|
end
|
||||||
rescue Errno::EPIPE
|
rescue Errno::EPIPE
|
||||||
ensure
|
ensure
|
||||||
|
Loading…
x
Reference in New Issue
Block a user