[#1491] bug — Mathieu Bouchard <matju@...>
6 messages
2003/09/01
[#1492] non-blocking mode behavior (Re: bug)
— nobu.nokada@...
2003/09/01
Hi,
[#1512] New tests — Dave Thomas <Dave@...>
I was looking through the new test/ruby/* stuff just now, and notices
6 messages
2003/09/05
[#1533] GC disable / enable question — Torsten Rueger <torsten.rueger@...>
Moi,
7 messages
2003/09/17
[#1534] Re: GC disable / enable question
— nobu.nokada@...
2003/09/17
Hi,
[#1541] How to debug ? — Torsten Rueger <torsten.rueger@...>
Moi,
6 messages
2003/09/19
[#1542] Re: How to debug ?
— ts <decoux@...>
2003/09/19
>>>>> "T" == Torsten Rueger <torsten.rueger@hiit.fi> writes:
[#1551] Hashes as keys — "Nathaniel Talbott" <nathaniel@...>
I was just playing around with Hash#hash and discovered that you can't use a
13 messages
2003/09/23
[#1552] Re: Hashes as keys
— Jim Freeze <jim@...>
2003/09/23
On Wednesday, 24 September 2003 at 6:21:33 +0900, Nathaniel Talbott wrote:
[#1556] ostruct.rb patch — "Nathaniel Talbott" <nathaniel@...>
I've been finding OpenStruct to be very useful lately, and then I discovered
9 messages
2003/09/24
[#1557] Re: ostruct.rb patch
— "NAKAMURA, Hiroshi" <nahi@...>
2003/09/24
Hi, Nathaniel,
bug
From:
Mathieu Bouchard <matju@...>
Date:
2003-09-01 02:46:21 UTC
List:
ruby-core #1491
Hi. I have found a bug that is present in version 1.8.0, but not in
version 1.6.8. The following should raise a Errno::EAGAIN, but does not
anymore: it waits instead.
BTW someone else reports he has the same thing _working_ on his machine.
Note: I can't find anything related to non-blocking mode in Rubicon,
despite my request (see [ruby-talk:31825] and following) to make it so,
and Matz's approval. I will probably add unit-tests for _Ruby_'s
functionality into _my_ own Ruby programs, if I still can't get them into
Rubicon.
------------------8<--------cut-here--------8<------------------
require "socket"
require "fcntl"
class IO
def nonblock= flag
bit = Fcntl::O_NONBLOCK
state = fcntl(Fcntl::F_GETFL, 0)
fcntl(Fcntl::F_SETFL, (state & ~bit) |
(if flag; bit else 0 end))
end
end
foo=TCPServer.new(4242)
foo.nonblock=true
foo.accept
________________________________________________________________
Mathieu Bouchard http://artengine.ca/matju