[#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,

Possible YAMl bug in 1.8.4

From: Damphyr <damphyr@...>
Date: 2006-05-08 18:29:16 UTC
List: ruby-core #7843
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

Prev Next