[#7872] Nonblocking socket-connect — "Francis Cianfrocca" <garbagecat10@...>

All, I needed a nonblocking socket connect for my asynchronous-event

18 messages 2006/05/14
[#7873] Re: Nonblocking socket-connect — Tanaka Akira <akr@...17n.org> 2006/05/14

In article <3a94cf510605140559l7baa0205le341dac4f47d424b@mail.gmail.com>,

[#7874] Re: Nonblocking socket-connect — "Francis Cianfrocca" <garbagecat10@...> 2006/05/15

How about introducing the method Socket#set_nonblocking, or alternatively

[#7875] Re: Nonblocking socket-connect — Yukihiro Matsumoto <matz@...> 2006/05/15

Hi,

[#7876] Re: Nonblocking socket-connect — "Francis Cianfrocca" <garbagecat10@...> 2006/05/15

Well, it's ok then. I'm comfortable adding in the nonblocking

[#7877] Re: Nonblocking socket-connect — Yukihiro Matsumoto <matz@...> 2006/05/15

Hi,

Re: Possible YAMl bug in 1.8.4

From: "Curt Hibbs" <ml.chibbs@...>
Date: 2006-05-09 01:51:54 UTC
List: ruby-core #7846
Its probably a bug.  I'm not familiar with the specifics, but Ruby
1.8.4does have known bugs in its YAML support.

I haven't verified this, by ruby-mswin32 (upon which the one-click installer
is built) has a new 1.8.4 build released last month. Since there have not
been any further releases of Ruby 1.8.4, I'm assuming that this ruby-mswin32
release includes updated YAML fixes from CVS HEAD.

Anyway, I'm going to find out and, if so, update the one-click installer for
its next release.

Curt


On 5/8/06, Damphyr <damphyr@freemail.gr> wrote:
>
> OK, while parsing the td2 data from the ruby-lang website we stumbled on
> a possible bug in YAML in the 1.8.4 version.
> I am running 1.8.2-15 of the windows one click installer and the
> following code is running perfectly:
>
> require 'yaml'
>
> bug=[{:content=>"\n\n <dl>\n<dt>From: Yukihiro Matsumoto &lt;matz at
> ruby-lang.org&gt;</dt>"}]
>
> dumped=YAML.dump(bug)
> p YAML::load( dumped )
>
> D:\projects\ruby-lang>ruby yaml_bug.rb
> [{:content=>"\n\n <dl>\n<dt>From: Yukihiro Matsumoto &lt;matz at
> ruby-lang.org&gt;</dt>"}]
>
> The same code with the 1.8.4-16 RC2 installer produces a syntax error
> when loading the dump:
>
> D:\projects\ruby-lang>d:\ruby-1.8.4\bin\ruby.exe yaml_bug.rb
> d:/ruby-1.8.4/lib/ruby/1.8/yaml.rb:133:in `load': syntax error on line
> 5, col 4: `    <dt>From: Yukihiro Matsu
> moto &lt;matz at ruby-lang.org&gt;</dt>' (ArgumentError)
>         from d:/ruby-1.8.4/lib/ruby/1.8/yaml.rb:133:in `load'
>         from yaml_bug.rb:6
>
> I traced the problem to a leading space (the one before <dl>). I worked
> around it by stripping all leading whitespace from our lines but James
> (Edward Gray II) thought we should mention this here.
>
> So is this a bug? It is damn inconvenient anyways :)
> Cheers,
> V.-
> --
> http://www.braveworld.net/riva
>
> ____________________________________________________________________
> http://www.freemail.gr - 糯驟橄 苟纉焉 芫繩闕蜉陜 糀闌縷阨.
> http://www.freemail.gr - free email service for the Greek-speaking.
>
>

In This Thread