[#25430] 1.8 warn nonblocking IO#read and add IO#readpartial — Tanaka Akira <akr@...17n.org>

1.8 に以下の変更を行いたいんですが、どうでしょうか?

29 messages 2005/01/08
[#25445] Re: 1.8 warn nonblocking IO#read and add IO#readpartial — Tanaka Akira <akr@...17n.org> 2005/01/09

In article <20050109063005.3048a4ba.tommy@tmtm.org>,

[#25479] some problems on ext/tk/sample/**/*.rb — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp>

山本です。

44 messages 2005/01/15
[#25488] Re: some problems on ext/tk/sample/**/*.rb — Hidetoshi NAGAI <nagai@...> 2005/01/22

永井@知能.九工大です.

[#25489] Re: some problems on ext/tk/sample/**/*.rb — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp> 2005/01/22

山本です。

[#25490] Re: some problems on ext/tk/sample/**/*.rb — Hidetoshi NAGAI <nagai@...> 2005/01/22

永井@知能.九工大です.

[#25517] Re: some problems on ext/tk/sample/**/*.rb — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp> 2005/01/25

山本です。

[#25519] Re: some problems on ext/tk/sample/**/*.rb — Hidetoshi NAGAI <nagai@...> 2005/01/25

永井@知能.九工大です.

[#25521] Re: some problems on ext/tk/sample/**/*.rb — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp> 2005/01/25

山本です。

[#25523] Re: some problems on ext/tk/sample/**/*.rb — Hidetoshi NAGAI <nagai@...> 2005/01/25

永井@知能.九工大です.

[#25530] Re: some problems on ext/tk/sample/**/*.rb — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp> 2005/01/25

山本です。

[#25537] Re: some problems on ext/tk/sample/**/*.rb — Hidetoshi NAGAI <nagai@...> 2005/01/26

永井@知能.九工大です.

[#25545] Re: some problems on ext/tk/sample/**/*.rb — Hidetoshi NAGAI <nagai@...> 2005/01/26

永井@知能.九工大です.

[#25546] Re: some problems on ext/tk/sample/**/*.rb — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp> 2005/01/26

山本です。

[#25547] Re: some problems on ext/tk/sample/**/*.rb — "U.Nakamura" <usa@...> 2005/01/26

こんにちは、なかむら(う)です。

[#25548] Re: some problems on ext/tk/sample/**/*.rb — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp> 2005/01/26

山本です。

[#25550] Re: some problems on ext/tk/sample/**/*.rb — Hidetoshi NAGAI <nagai@...> 2005/01/26

永井@知能.九工大です.

[#25553] Re: some problems on ext/tk/sample/**/*.rb — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp> 2005/01/26

山本です。

[#25556] Re: some problems on ext/tk/sample/**/*.rb — Hidetoshi NAGAI <nagai@...> 2005/01/26

永井@知能.九工大です.

[#25567] Re: some problems on ext/tk/sample/**/*.rb — Hidetoshi NAGAI <nagai@...> 2005/01/27

永井@知能.九工大です.

[#25569] Re: some problems on ext/tk/sample/**/*.rb — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp> 2005/01/27

山本です。

[#25578] Re: some problems on ext/tk/sample/**/*.rb — Hidetoshi NAGAI <nagai@...> 2005/01/28

永井@知能.九工大です.

[#25585] Re: some problems on ext/tk/sample/**/*.rb — Hidetoshi NAGAI <nagai@...> 2005/01/28

永井@知能.九工大です.

[#25605] Re: some problems on ext/tk/sample/**/*.rb — Hidetoshi NAGAI <nagai@...> 2005/01/31

永井@知能.九工大です.

[#25609] Re: some problems on ext/tk/sample/**/*.rb — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp> 2005/02/01

山本です。

[#25500] priority between commandline option and RUBYOPT env variable — Hidetoshi NAGAI <nagai@...>

永井@知能.九工大です.

13 messages 2005/01/25

[#25522] merge tcltklib and tk — Hidetoshi NAGAI <nagai@...>

永井@知能.九工大です.

32 messages 2005/01/25
[#25552] Re: merge tcltklib and tk — nobu@... 2005/01/26

なかだです。

[#25555] Re: merge tcltklib and tk — Hidetoshi NAGAI <nagai@...> 2005/01/26

永井@知能.九工大です.

[#25557] Re: merge tcltklib and tk — nobu@... 2005/01/26

なかだです。

[#25561] Re: merge tcltklib and tk — Hidetoshi NAGAI <nagai@...> 2005/01/27

永井@知能.九工大です.

[#25566] Re: merge tcltklib and tk — Hidetoshi NAGAI <nagai@...> 2005/01/27

永井@知能.九工大です.

[#25590] Can I copy doc/irb/irb.rd.ja to the reference Wiki? — sheepman <sheepman@...>

こんばんは、sheepman です。

16 messages 2005/01/29
[#25591] Re: Can I copy doc/irb/irb.rd.ja to the reference Wiki? — keiju@... (石塚圭樹) 2005/01/29

けいじゅ@いしつかです.

[#25592] irb history saving feature is not in ruby 1.8 — sheepman <sheepman@...> 2005/01/30

こんにちは、sheepman です。

[#25593] Re: irb history saving feature is not in ruby 1.8 — keiju@... (石塚圭樹) 2005/01/30

けいじゅ@いしつかです.

[#25594] Re: irb history saving feature is not in ruby 1.8 — sheepman <sheepman@...> 2005/01/30

こんにちは、sheepman です。

[#25595] Re: irb history saving feature is not in ruby 1.8 — keiju@... (石塚圭樹) 2005/01/30

けいじゅ@いしつかです.

[ruby-dev:25414] 1.9.0で使用済みソケットが回収されない?

From: "H.Yamamoto" <ocean@...2.ccsnet.ne.jp>
Date: 2005-01-06 07:08:18 UTC
List: ruby-dev #25414
山本です。

1.9.0のbcc32でtest/drbが止まるのを調べていて気づいたのですが、
どうも、1.9.0では使用済みソケットが回収されていないように見えます。

下のパッチを当てて test/drb を実行すると、1.8.2 ではファイルハンドルの
値(ハンドルテーブルのインデックス)が適宜減るのに対して、1.9.0 では
増えつづけ、最後には 152 に達します。

  ruby -rsocket -e "50.times { TCPSocket.open(???, ???) }"

のようなコードでも再現できます。

///////////////////////////
// 1.8.2(random.c はとりあえずコンパイルを通すため)

Index: random.c
===================================================================
RCS file: /src/ruby/random.c,v
retrieving revision 1.30.2.6
diff -u -w -b -p -r1.30.2.6 random.c
--- random.c	5 Jan 2005 11:31:41 -0000	1.30.2.6
+++ random.c	6 Jan 2005 05:05:51 -0000
@@ -275,7 +275,10 @@ random_seed()
     memset(digits, 0, big->len * SIZEOF_BDIGITS);
 
 #ifdef S_ISCHR
-    if ((fd = open("/dev/urandom", O_RDONLY|O_NONBLOCK
+    if ((fd = open("/dev/urandom", O_RDONLY
+#ifdef O_NONBLOCK
+            |O_NONBLOCK
+#endif
 #ifdef O_NOCTTY
             |O_NOCTTY
 #endif

Index: win32/win32.c
===================================================================
RCS file: /src/ruby/win32/win32.c,v
retrieving revision 1.103.2.17
diff -u -w -b -p -r1.103.2.17 win32.c
--- win32/win32.c	5 Jan 2005 01:50:06 -0000	1.103.2.17
+++ win32/win32.c	6 Jan 2005 06:09:21 -0000
@@ -2228,6 +2228,9 @@ rb_w32_socket(int af, int type, int prot
 	    fd = rb_w32_open_osfhandle(s, O_RDWR|O_BINARY);
 	}
     });
+
+    printf(">>>> %d\n", fd);
+
     return fd;
 }


E:\ruby_1_8\win32\bin>testrb e:/ruby-cvs/ruby_1_8/test/drb
>>>> 4
>>>> 5
Loaded suite drb
Started
(snip)
>>>> 4
>>>> 11
>>>> 6
>>>> 21
.>>>> 3
>>>> 4
>>>> 13
>>>> 6
>>>> 26
.>>>> 3
>>>> 4
>>>> 15
>>>> 6
>>>> 22
...........
Finished in 42.262 seconds.

69 tests, 362 assertions, 0 failures, 0 errors

///////////////////////////
// 1.9.0

Index: win32/win32.c
===================================================================
RCS file: /src/ruby/win32/win32.c,v
retrieving revision 1.139
diff -u -w -b -p -r1.139 win32.c
--- win32/win32.c	5 Jan 2005 08:00:50 -0000	1.139
+++ win32/win32.c	6 Jan 2005 06:10:29 -0000
@@ -2252,6 +2252,9 @@ rb_w32_socket(int af, int type, int prot
 	    fd = rb_w32_open_osfhandle(s, O_RDWR|O_BINARY);
 	}
     });
+
+    printf(">>>> %d\n", fd);
+
     return fd;
 }

E:\ruby-cvs\win32>.\ruby ..\ruby\runruby.rb --ext=".ext" -- -v ..\ruby\bin\testr
b e:/ruby-cvs/ruby/test/drb
ruby 1.9.0 (2005-01-06) [i386-mswin32]
>>>> 3
Loaded suite drb
Started
(snip)
>>>> 146
.>>>> 3
>>>> 4
>>>> 148
>>>> 149
.>>>> 3
>>>> 4
>>>> 151
>>>> 152
...........
Finished in 22.594 seconds.

62 tests, 353 assertions, 0 failures, 0 errors


In This Thread

Prev Next