# FTP and/or RIO (module) connection problem

**URL:** <https://www.ruby-forum.com/t/ftp-and-or-rio-module-connection-problem/136586>\
**Category:** Ruby\
**Created:** [May 3, 2008, 11:59pm UTC](https://www.ruby-forum.com/t/ftp-and-or-rio-module-connection-problem/136586 "2008-05-03T23:59:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![diabolist](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/c2a13f/32.png) [@diabolist](https://www.ruby-forum.com/u/diabolist)\
**Post date:** [May 3, 2008, 11:59pm UTC](https://www.ruby-forum.com/t/ftp-and-or-rio-module-connection-problem/136586/1 "2008-05-03T23:59:38Z")

</div>

I wrote a script to download a bunch of files from an FTP site and it  
uses the module RIO to actually copy it to the HD. And every random  
amount of files the script gets the error “An established connection was  
aborted by the software in your host machine.” And to try to counter  
errors I rescue and call the function again. And it constantly gets that  
error from that point until the script ends. Then I can rerun the script  
and it works again. I need to know a way around this problem by either  
closing the connection completely or reseting some part of the modules  
that what ever the script is running that causes that.
