1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
shugo 2007-02-06 09:45:28 +00:00
parent 8786140206
commit 0d59cd79cc
2 changed files with 19 additions and 14 deletions

View file

@ -1,3 +1,8 @@
Tue Feb 6 18:43:17 2007 Shugo Maeda <shugo@ruby-lang.org>
* lib/net/ftp.rb: moved fixes for EPIPE to the correct
place. [ruby-core:10204]
Tue Feb 6 16:38:08 2007 Koichi Sasada <ko1@atdot.net>
* vm_opts.h: set properties:

View file

@ -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
#