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

[Bug?] set_trace_func: binding has wrong self value for return events

From: =?ISO-8859-15?Q?Florian_Gro=DF?= <florgro@...>
Date: 2006-05-27 15:30:14 UTC
List: ruby-core #7928
Moin.

As far as I understand the binding argument given to the trace func for 
return events is supposed to be the function Ruby is returning to.

However, while you can access local variables of the caller with this 
binding, accessing instance variables and self doesn't work correctly in 
all cases.

The attached script demonstrates that behavior. I get this output:

> ruby 1.8.2 (2004-12-25) [i386-mswin32]
> ["return", "trace-func-test.rb", 25, :initialize, #<Binding:0x2837a30>, Test]
> [:unexpected, Test]
> :expected

But I would expect this:

> ruby 1.8.2 (2004-12-25) [i386-mswin32]
> ["return", "trace-func-test.rb", 25, :initialize, #<Binding:0x2837a30>, Test]
> [:expected, Foo]
> :expected

Or is this not a bug?

Thank you in advance for your help.

This seems to be causing problems for some users of Binding.of_caller, 
but oddly it seems to work just fine for ruby-breakpoint which itself 
uses Binding.of_caller. I'm not really sure why it works in some cases 
and not in others.

Kind regards,
Florian Gross

-- 
http://flgr.0x42.net/

Attachments (1)

trace-func-test.rb (584 Bytes, application/x-ruby)

In This Thread

Prev Next