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:
parent
8786140206
commit
0d59cd79cc
2 changed files with 19 additions and 14 deletions
|
@ -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>
|
Tue Feb 6 16:38:08 2007 Koichi Sasada <ko1@atdot.net>
|
||||||
|
|
||||||
* vm_opts.h: set properties:
|
* vm_opts.h: set properties:
|
||||||
|
|
|
@ -291,13 +291,6 @@ module Net
|
||||||
putline(cmd)
|
putline(cmd)
|
||||||
voidresp
|
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
|
end
|
||||||
|
|
||||||
def sendport(host, port)
|
def sendport(host, port)
|
||||||
|
@ -434,13 +427,6 @@ module Net
|
||||||
voidresp
|
voidresp
|
||||||
end
|
end
|
||||||
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
|
end
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -492,6 +478,13 @@ module Net
|
||||||
voidresp
|
voidresp
|
||||||
end
|
end
|
||||||
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
|
end
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -517,6 +510,13 @@ module Net
|
||||||
voidresp
|
voidresp
|
||||||
end
|
end
|
||||||
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
|
end
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in a new issue