[#2529] concerns about Proc,lambda,block — "David A. Black" <dblack@...>

Hi --

39 messages 2004/03/01
[#2531] Re: concerns about Proc,lambda,block — ts <decoux@...> 2004/03/01

>>>>> "D" == David A Black <dblack@wobblini.net> writes:

[#2533] Re: concerns about Proc,lambda,block — "David A. Black" <dblack@...> 2004/03/01

Hi --

[#2537] Re: concerns about Proc,lambda,block — matz@... (Yukihiro Matsumoto) 2004/03/01

Hi,

[#2542] Re: concerns about Proc,lambda,block — Mathieu Bouchard <matju@...> 2004/03/02

[#2545] Re: concerns about Proc,lambda,block — matz@... (Yukihiro Matsumoto) 2004/03/02

Hi,

[#2550] Re: concerns about Proc,lambda,block — Mauricio Fern疣dez <batsman.geo@...> 2004/03/03

On Wed, Mar 03, 2004 at 07:51:10AM +0900, Yukihiro Matsumoto wrote:

[#2703] Proposed patch to add SSL support to net/pop.rb — Daniel Hobe <daniel@...>

This patch adds support to Net::POP for doing POP over SSL. Modeled on how

19 messages 2004/03/27
[#2704] Re: Proposed patch to add SSL support to net/pop.rb — Daniel Hobe <daniel@...> 2004/03/27

This is v2 of the patch. Cleaned up a bit and added some more docs.

[#2707] Re: Proposed patch to add SSL support to net/pop.rb — Daniel Hobe <daniel@...> 2004/03/28

v3 of the patch:

[#2721] Re: Proposed patch to add SSL support to net/pop.rb — Minero Aoki <aamine@...> 2004/03/30

Hi,

DRb on Windows: the should-be-well-known problem with 'gets'

From: Thomas Uehlinger <uehli@...>
Date: 2004-03-16 03:18:27 UTC
List: ruby-core #2664
Hi all,

I just spent a day finding out why my DRb connections from a linux box
to a windows server didn't work.
This was just because I had something like

require 'drb'


DRb.start_service("druby://:8000", a_obj)

puts "The server is running, press [ENTER] to stop it."

gets


on the windows machine.
But on windows, the "gets" blocks all ruby threads, so the right
solution would be:

puts "The server is running, press [CTRL]+[BREAK] to stop it."
DRb.thread.join


But because most of the included DRb samples use this technique, I
thought the whole time, something with my windows machine or the ruby
installation must be wrong.

So I suggest the following change:

Replace every use of "gets" for this purpose in the DRb samples with
something like this:

if RUBY_PLATFORM =~ /win/
	puts "Server running. Press [CTRL]+[BREAK] to stop it."
	DRb.thread.join
else
	puts "Server running. Press [ENTER] to stop it."
	gets
end


-- Thomas Uehlinger
	

In This Thread

Prev Next