diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-09-21 17:06:05 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-09-21 17:06:05 +0000 |
commit | 6a7d389ed0bae2083b6608072fad34e64b3901d7 (patch) | |
tree | 245f6f9d593a68823215e53a620ab8014e9633a0 /ChangeLog | |
parent | 941b101e2200b0eabd738e40e7034d09109e0282 (diff) | |
download | ruby-6a7d389ed0bae2083b6608072fad34e64b3901d7.tar.gz |
* lib/drb/drb.rb: Support graceful shutdown.
(DRbTCPSocket#initialize): Create a pipe for shutdown notification.
(DRbTCPSocket#close): Invoke close_shutdown_pipe.
(DRbTCPSocket#close_shutdown_pipe): New private method.
(DRbTCPSocket#accept): Use accept_or_shutdown.
(DRbTCPSocket#accept_or_shutdown): New private method which returns
nil on shutdown.
(DRbServer#stop_service): Use shutdown instead of Thread#kill.
(DRbServer#run): Break infinite loop when main_loop returns nil.
(DRbServer#main_loop): @protocol.accept may return nil.
* lib/drb/ssl.rb: Follow above change.
* lib/drb/unix.rb: Ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47678 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -1,3 +1,20 @@ +Mon Sep 22 02:04:25 2014 Tanaka Akira <akr@fsij.org> + + * lib/drb/drb.rb: Support graceful shutdown. + (DRbTCPSocket#initialize): Create a pipe for shutdown notification. + (DRbTCPSocket#close): Invoke close_shutdown_pipe. + (DRbTCPSocket#close_shutdown_pipe): New private method. + (DRbTCPSocket#accept): Use accept_or_shutdown. + (DRbTCPSocket#accept_or_shutdown): New private method which returns + nil on shutdown. + (DRbServer#stop_service): Use shutdown instead of Thread#kill. + (DRbServer#run): Break infinite loop when main_loop returns nil. + (DRbServer#main_loop): @protocol.accept may return nil. + + * lib/drb/ssl.rb: Follow above change. + + * lib/drb/unix.rb: Ditto. + Sun Sep 21 13:54:36 2014 Masaki Matsushita <glass.saga@gmail.com> * time.c: raise exception when minutes of utc_offset is out of 00-59. |