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

* lib/drb/drb.rb: add debug information for mswin CI. this change will be reverted later.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52442 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2015-11-04 03:13:20 +00:00
parent f604375832
commit c457e91a8d

View file

@ -582,7 +582,7 @@ module DRb
begin
str = soc.read(sz)
rescue
raise(DRbConnError, $!.message, $!.backtrace)
raise(DRbConnError, $!.message + " peer: #{soc.peeraddr[2]}:#{soc.peeraddr[1]}, sz: #{sz}", $!.backtrace)
end
raise(DRbConnError, 'connection closed') if str.nil?
raise(DRbConnError, 'premature marshal format(can\'t read)') if str.size < sz