diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-12-04 12:50:13 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-12-04 12:50:13 +0000 |
| commit | 23209559cf679ba188a3bef539880d3ac2ffc39b (patch) | |
| tree | 6f8af219a5e9832a1ecce5398a0d5ab4b34797fb /lib/drb/drb.rb | |
| parent | 79140152823eb1c98f04532c29ace6d4cd06ad6f (diff) | |
| download | ruby-23209559cf679ba188a3bef539880d3ac2ffc39b.tar.gz ruby-23209559cf679ba188a3bef539880d3ac2ffc39b.tar.xz ruby-23209559cf679ba188a3bef539880d3ac2ffc39b.zip | |
* lib/drb/drb.rb (DRb::DRbMessage::send_request, send_reply):
should rescue errors and re-raise DRbConnError on write too.
[ruby-dev:22132]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5110 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/drb/drb.rb')
| -rw-r--r-- | lib/drb/drb.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/drb/drb.rb b/lib/drb/drb.rb index 00d5fa1d2..e9ac40773 100644 --- a/lib/drb/drb.rb +++ b/lib/drb/drb.rb @@ -582,6 +582,8 @@ module DRb end ary.push(dump(b)) stream.write(ary.join('')) + rescue + raise(DRbConnError, $!.message, $!.backtrace) end def recv_request(stream) # :nodoc: @@ -600,6 +602,8 @@ module DRb def send_reply(stream, succ, result) # :nodoc: stream.write(dump(succ) + dump(result)) + rescue + raise(DRbConnError, $!.message, $!.backtrace) end def recv_reply(stream) # :nodoc: |
