Sha256: 35ecb2f2d8a38013cc466b78830f704873021e730e669b0ec1ddf26a1721074e
Contents?: true
Size: 474 Bytes
Versions: 5
Compression:
Stored size: 474 Bytes
Contents
require_relative 'command_handler' module Ftpd class CmdPbsz < CommandHandler def cmd_pbsz(buffer_size) ensure_tls_supported syntax_error unless buffer_size =~ /^\d+$/ buffer_size = buffer_size.to_i unless socket.encrypted? error "503 PBSZ must be preceded by AUTH" end unless buffer_size == 0 error "501 PBSZ=0" end reply "200 PBSZ=0" self.protection_buffer_size_set = true end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
ftpd-0.16.0 | lib/ftpd/cmd_pbsz.rb |
ftpd-0.15.0 | lib/ftpd/cmd_pbsz.rb |
ftpd-0.14.0 | lib/ftpd/cmd_pbsz.rb |
ftpd-0.13.0 | lib/ftpd/cmd_pbsz.rb |
ftpd-0.12.0 | lib/ftpd/cmd_pbsz.rb |