hsbt
59ca946543
* lib/rinda/ring.rb: split executable code into sample directory.
...
* sample/rinda-ring.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47236 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-21 04:23:56 +00:00
akr
09ab3a0a9f
* lib/rinda/ring.rb (RingFinger#make_socket): Close the socket on exception.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46292 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-06-01 02:37:27 +00:00
akr
f414bfc681
* lib/rinda/ring.rb (Rinda::RingServer#shutdown): Join the killed
...
threads.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46110 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-25 07:32:26 +00:00
drbrain
7295607815
* lib/rinda/ring.rb (Rinda::RingFinger#make_socket): Use
...
ipv4_multicast_ttl option for portability.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44494 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-01-04 01:18:20 +00:00
drbrain
9b4f2adcc1
* lib/rinda/ring.rb (Rinda::RingFinger#make_socket): Use
...
ipv4_multicast_loop option for portability. Patch by Jeremy Evans.
[ruby-trunk - Bug #9351 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44492 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-01-04 01:16:28 +00:00
drbrain
9c8f03fac9
* lib/rinda/ring.rb: Announce RingServer for the same process.
...
[ruby-trunk - Bug #9163 ]
* test/rinda/test_rinda.rb: Tests for the above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43872 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-27 05:50:21 +00:00
shirosaki
93ed9f08ad
ring.rb: specify multicast interface
...
* lib/rinda/ring.rb (Rinda::RingServer#initialize): accept array
arguments of address to specify multicast interface.
* lib/rinda/ring.rb (Rinda::RingServer#make_socket): add optional
arguments for multicast interface.
* test/rinda/test_rinda.rb
(TestRingFinger#test_ring_server_ipv4_multicast,
TestRingFinger#test_ring_server_ipv6_multicast): add tests for
above change.
* test/rinda/test_rinda.rb
(TestRingServer#test_make_socket_ipv4_multicast,
TestRingServer#test_make_socket_ipv6_multicast): change bound
interface address because multicast address is not allowed on Linux
or Windows.
[ruby-core:53692] [Bug #8159 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40472 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-25 15:43:22 +00:00
shirosaki
b721c38f34
ring.rb: add a socket to @sockets in make_socket()
...
* lib/rinda/ring.rb (Rinda::RingServer#initialize): add a socket
to @sockets in make_socket() to close sockets on shutdown even if
make_socket() is called after initialize.
* lib/rinda/ring.rb (Rinda::RingServer#make_socket): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40470 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-25 15:36:33 +00:00
naruse
eaad7bedc9
Suppress warnings
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39929 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-03-25 18:50:48 +00:00
drbrain
7a64cdeb55
* lib/rinda/ring.rb: Added documentation for multicast support.
...
* NEWS: Point to above documentation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39897 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-03-23 20:36:42 +00:00
drbrain
646bcaa717
* lib/rinda/ring.rb: Add multicast support to Rinda::RingFinger and
...
Rinda::RingServer. [ruby-trunk - Bug #8073 ]
* test/rinda/test_rinda.rb: Test for the above.
* NEWS: Update with Rinda multicast support
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39895 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-03-23 20:10:11 +00:00
seki
113b94e145
* lib/rinda/ring.rb (lookup_ring_any): fix Rinda::RingFinger.primary
...
hungs forever. [ruby-talk:395364]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35597 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-05-08 19:35:07 +00:00
drbrain
7bbf2f3085
* lib: Convert tabs to spaces for ruby files per
...
http://redmine.ruby-lang.org/projects/ruby/wiki/DeveloperHowto#coding-style
Patch by Steve Klabnik [Ruby 1.9 - Bug #4730 ]
Patch by Jason Dew [Ruby 1.9 - Feature #4718 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31635 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-18 21:19:18 +00:00
marcandre
f3e3547407
* lib/*.rb: Remove unused variable warnings.
...
Patch by Run Paint [ruby-core:30991]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29726 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-08 20:59:01 +00:00
nobu
287a34ae0d
* {ext,lib,test}/**/*.rb: removed trailing spaces.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-06 03:56:38 +00:00
matz
85bae86cb6
* lib/optparse/version.rb: remove variable shadowing to stop
...
warning. [ruby-core:20612]
* lib/irb/completion.rb, lib/net/imap.rb, lib/prime.rb,
lib/rinda/ring.rb, lib/racc/parser.rb,
lib/shell/command-processor.rb, lib/yaml/yamlnode.rb: ditto.
* lib/racc/parser.rb: remove space before parentheses.
* lib/shell/command-processor.rb, lib/shell/process-controller.rb:
use parentheses around arguments.
* lib/irb/ext/change-ws.rb, lib/rexml/validation/relaxng.rb,
lib/yaml/baseemitter.rb: indentation fix.
* lib/matrix.rb: small cosmetic change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20859 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-18 07:54:50 +00:00
matz
e6c1752137
* lib/rdoc.rb: massive spelling correction patch from Evan Farrar
...
<evanfarrar at gmail.com> in [ruby-doc:1382] applied.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16810 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-04 09:37:38 +00:00
seki
def653cd80
RDoc documentation from Eric Hodel <drbrain@segment7.net> added.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9459 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-24 15:38:47 +00:00
seki
6776688a2d
use recv instead of recvfrom
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6247 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-04 18:53:26 +00:00
seki
fde4c2dce8
add rinda, (import from drb-2.0.4)
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4696 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-05 12:23:33 +00:00