summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorshugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-02-06 09:45:28 +0000
committershugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-02-06 09:45:28 +0000
commit0d59cd79cc791047842a98d210b5a35267ba3602 (patch)
tree27fced41e029f4db14ad171d2683e02cd131d500 /lib
parent87861402065ac2f5f0578c897f28b4cb4409d75b (diff)
* lib/net/ftp.rb: moved fixes for EPIPE to the correct
place. [ruby-core:10204] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/net/ftp.rb28
1 files changed, 14 insertions, 14 deletions
diff --git a/lib/net/ftp.rb b/lib/net/ftp.rb
index 26f4da277b..9b231291af 100644
--- a/lib/net/ftp.rb
+++ b/lib/net/ftp.rb
@@ -291,13 +291,6 @@ module Net
putline(cmd)
voidresp
end
- rescue Errno::EPIPE
- # EPIPE, in this case, means that the data connection was unexpectedly
- # terminated. Rather than just raising EPIPE to the caller, check the
- # response on the control connection. If getresp doesn't raise a more
- # appropriate exception, re-raise the original exception.
- getresp
- raise
end
def sendport(host, port)
@@ -434,13 +427,6 @@ module Net
voidresp
end
end
- rescue Errno::EPIPE
- # EPIPE, in this case, means that the data connection was unexpectedly
- # terminated. Rather than just raising EPIPE to the caller, check the
- # response on the control connection. If getresp doesn't raise a more
- # appropriate exception, re-raise the original exception.
- getresp
- raise
end
#
@@ -492,6 +478,13 @@ module Net
voidresp
end
end
+ rescue Errno::EPIPE
+ # EPIPE, in this case, means that the data connection was unexpectedly
+ # terminated. Rather than just raising EPIPE to the caller, check the
+ # response on the control connection. If getresp doesn't raise a more
+ # appropriate exception, re-raise the original exception.
+ getresp
+ raise
end
#
@@ -517,6 +510,13 @@ module Net
voidresp
end
end
+ rescue Errno::EPIPE
+ # EPIPE, in this case, means that the data connection was unexpectedly
+ # terminated. Rather than just raising EPIPE to the caller, check the
+ # response on the control connection. If getresp doesn't raise a more
+ # appropriate exception, re-raise the original exception.
+ getresp
+ raise
end
#