summaryrefslogtreecommitdiff
path: root/test/drb/ut_drb.rb
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2019-10-13 22:20:32 -0700
committerMasatoshi SEKI <m_seki@mva.biglobe.ne.jp>2019-10-14 14:20:32 +0900
commitd0ed935d5bf8c3fce9800742a36e44fb7f63dda4 (patch)
treecba892665fbb002f240c3363ac58d41f23922ed5 /test/drb/ut_drb.rb
parent95c420c4a65ca2e7f3edf27134ad33691959296c (diff)
Fix some DRb issues (#2552)
* Handle BasicObject in drb Also fix a bug in rescue clause of any_to_s because sprintf does not handle the %l modifier. Fixes [Bug #7833] * Do not send a reply to the client if there is a connection error This allows for normal TCP shutdown (fin-ack-fin-ack instead of fin-ack-push-rst). Patch from pierre@mouraf.org (Pierre-Alexandre Meyer). Fixes [Bug #2339] * Detect fork and do not reuse forked connections in drb This associates each DRbConn with a pid, and if the pid changes, it closes any DRbConns in the pool with a pid that no longer matches. This fixes DRb servers from sending messages intended for one client to another client after forking. Fixes [Bug #2718] Fixes [Bug #14471]
Diffstat (limited to 'test/drb/ut_drb.rb')
-rw-r--r--test/drb/ut_drb.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/drb/ut_drb.rb b/test/drb/ut_drb.rb
index 6a94a0fb401..b1306d0cb06 100644
--- a/test/drb/ut_drb.rb
+++ b/test/drb/ut_drb.rb
@@ -63,6 +63,15 @@ class DRbEx
FooBar.new
end
+ class BO < ::BasicObject
+ def foo; 1 end
+ protected def prot; 2; end
+ private def priv; 3; end
+ end
+ def basic_object
+ BO.new
+ end
+
def unknown_class
Unknown2.new
end