General

Profile

Phrogz (Gavin Kistner)

  • Login: Phrogz
  • Email: gavin@phrogz.net
  • Registered on: 01/19/2010
  • Last sign in: 11/18/2022

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 2 2

Activity

04/18/2017

09:14 PM Ruby Bug #13141: Spurious Net::FTPReplyError
shugo (Shugo Maeda) wrote:
> Please retry on FTPReplyError as a workaround.
I have implemented this workaround and it has successfully recovered several times now. FWIW the code is:
~~~ ruby
retries = 3
begin
ftp.getbinaryfi...
Phrogz (Gavin Kistner)

04/07/2017

03:59 PM Ruby Bug #13141: Spurious Net::FTPReplyError
shugo (Shugo Maeda) wrote:
> 226 is returned as a reply of PASV, but it's not RFC compilant and
> ...
I agree that this appears to be a bad server. Thanks for the suggestion to catch the error and retry. (Not sure why I didn't think of...
Phrogz (Gavin Kistner)

04/05/2017

08:00 PM Ruby Bug #13141: Spurious Net::FTPReplyError
With `debug_mode` on, I see this in my logs:
~~~
D, [2017-04-05T12:55:33.047600 #5076] DEBUG -- : ...downloading archived developerdownloads_26549.esw3cdc_S.201703190000-0300-33.gz
D, [2017-04-05T12:55:34.066636 #5076] DEBUG -- : .....
Phrogz (Gavin Kistner)

01/20/2017

05:11 PM Ruby Bug #13141 (Third Party's Issue): Spurious Net::FTPReplyError
I have a script that downloads many files via FTP. `ftp.getbinaryfile` occasionally fails (about 7 times while downloading ~2000 files).
Here's the code:
~~~ ruby
Net::FTP.open(SITE) do |ftp|
ftp.login USER, PASS
ftp.passive...
Phrogz (Gavin Kistner)

02/02/2016

09:36 PM Ruby Feature #12047 (Closed): Set#=== (aliased to include?)
Add `Set#===` as an alias for `Set#include?` so that sets may be used in `case` statements:
~~~
require 'set'
GOOD_COMMANDS = Set[ :foo, :bar, :jim ]
BAD_COMMANDS = Set[ :baz, :bax, :jam ]
ODD_COMMANDS = Set[ :quux, :xyzzy ]
...
Phrogz (Gavin Kistner)

Also available in: Atom