• Ruby Net:Ftp file upload stalled

    by  • 27th April 2009 • post

    I have recently discovered that my Ruby hooks for SVN which I use as a post-commit to upload new revision to FTP server are hanging.

    It looked very strange , first file was nicely uploaded but the second was stalled. During debugging process I’ve discovered that any command after STOR is ignored and hanging.

    I didn’t find a reason, so had to make a short-cut and now my script does one file per connection, so it opens connection, uploads 1 file, closes it. I will have to put it in a parallel loop for performance gain.

    Do you have any Ideas about it ?