I'm trying to get FTPFXP to work on Ruby 2.0 (so I can FTP over TLS)
I'm having problems with this line, which sets up the SSL Socket. OpenSSL checks whether @sock
is a T_FILE
In Ruby 1.9.3, it worked well, because it was just a TCPSocket
but in Ruby 2.0, @sock
becomes a Net::FTP::BufferedSocket
.
It's easy enough to change the code in https://github.com/codeodor/ftpfxp/blob/06f2d56e65e73d3818b6c7aef4dfe461bad98849/lib/ftpfxp/ftpfxptls.rb#L87 to send @sock.io
to make it a TCPSocket
again, but when Net::FTP
tries to close the socket, it expects the socket to have a read timeout, wh