https://redmine.ruby-lang.org/https://redmine.ruby-lang.org/favicon.ico?17113305112013-02-13T18:46:24ZRuby Issue Tracking SystemRuby master - Bug #7833: DRb has problems with BasicObjecthttps://redmine.ruby-lang.org/issues/7833?journal_id=362222013-02-13T18:46:24Zusa (Usaku NAKAMURA)usa@garbagecollect.jp
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Assigned</i></li><li><strong>Assignee</strong> set to <i>seki (Masatoshi Seki)</i></li></ul> Ruby master - Bug #7833: DRb has problems with BasicObjecthttps://redmine.ruby-lang.org/issues/7833?journal_id=370652013-02-26T10:19:42Znaruse (Yui NARUSE)naruse@airemix.jp
<ul><li><strong>Target version</strong> changed from <i>1.9.3</i> to <i>2.6</i></li></ul> Ruby master - Bug #7833: DRb has problems with BasicObjecthttps://redmine.ruby-lang.org/issues/7833?journal_id=688842017-12-25T18:15:11Znaruse (Yui NARUSE)naruse@airemix.jp
<ul><li><strong>Target version</strong> deleted (<del><i>2.6</i></del>)</li></ul> Ruby master - Bug #7833: DRb has problems with BasicObjecthttps://redmine.ruby-lang.org/issues/7833?journal_id=804492019-08-07T18:08:40Zjeremyevans0 (Jeremy Evans)merch-redmine@jeremyevans.net
<ul><li><strong>File</strong> <a href="/attachments/7943">drb-basicobject-7833.patch</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/7943/drb-basicobject-7833.patch">drb-basicobject-7833.patch</a> added</li></ul><p>This is still a bug in the master branch. Attached is a patch that fixes the issue. It's a decent size patch as there are many parts of drb that need to be modified to handle BasicObject instances. This patch also fixes a bug in the rescue clause of any_to_s, as sprintf does not support a <code>%l</code> modifier (maybe it did at some point in the past, before 1.8.7?).</p> Ruby master - Bug #7833: DRb has problems with BasicObjecthttps://redmine.ruby-lang.org/issues/7833?journal_id=820142019-10-14T05:20:56Zjeremyevans (Jeremy Evans)code@jeremyevans.net
<ul><li><strong>Status</strong> changed from <i>Assigned</i> to <i>Closed</i></li></ul><p>Applied in changeset <a class="changeset" title="Fix some DRb issues (#2552) * Handle BasicObject in drb Also fix a bug in rescue clause of any_..." href="https://redmine.ruby-lang.org/projects/ruby-master/repository/git/revisions/d0ed935d5bf8c3fce9800742a36e44fb7f63dda4">git|d0ed935d5bf8c3fce9800742a36e44fb7f63dda4</a>.</p>
<hr>
<p>Fix some DRb issues (<a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: HOME 変数を空にして起動すると、再度空にできなくなる (Closed)" href="https://redmine.ruby-lang.org/issues/2552">#2552</a>)</p>
<ul>
<li>Handle BasicObject in drb</li>
</ul>
<p>Also fix a bug in rescue clause of any_to_s because sprintf<br>
does not handle the %l modifier.</p>
<p>Fixes [Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: DRb has problems with BasicObject (Closed)" href="https://redmine.ruby-lang.org/issues/7833">#7833</a>]</p>
<ul>
<li>Do not send a reply to the client if there is a connection error</li>
</ul>
<p>This allows for normal TCP shutdown (fin-ack-fin-ack instead of<br>
fin-ack-push-rst).</p>
<p>Patch from <a href="mailto:pierre@mouraf.org" class="email">pierre@mouraf.org</a> (Pierre-Alexandre Meyer).</p>
<p>Fixes [Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: DRb leaves connections half-open (Closed)" href="https://redmine.ruby-lang.org/issues/2339">#2339</a>]</p>
<ul>
<li>Detect fork and do not reuse forked connections in drb</li>
</ul>
<p>This associates each DRbConn with a pid, and if the pid changes,<br>
it closes any DRbConns in the pool with a pid that no longer<br>
matches. This fixes DRb servers from sending messages intended<br>
for one client to another client after forking.</p>
<p>Fixes [Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: DRb mixing up function return values between PIDs after fork() (Closed)" href="https://redmine.ruby-lang.org/issues/2718">#2718</a>]<br>
Fixes [Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: DRb mixing up function return values between PIDs after fork() (Closed)" href="https://redmine.ruby-lang.org/issues/14471">#14471</a>]</p>