[#30426] CGI でグラフを描くときにお勧めのライブラリは? — 堀川 久 <vzw00011@...>

こんにちは。

12 messages 2001/07/01

[#30453] syntax check without execution? — Tanaka Akira <akr@...17n.org>

最近、eRuby のまねごとをしていて、そのなかで Ruby のコードを生成してい

16 messages 2001/07/04
[#30455] Re: syntax check without execution? — matz@... (Yukihiro Matsumoto) 2001/07/04

まつもと ゆきひろです

[#30479] Object#dup — "Shin'ya Adzumi" <adzumi@...>

あづみです。

20 messages 2001/07/05

[#30512] open errno EALREADY triggerd — "Inoue" <inoue@...>

井上です。

16 messages 2001/07/08

[#30514] Ruby module frame work? — Takahiro Kambe <taca@...>

こんにちは。

16 messages 2001/07/09
[#30515] Re: Ruby module frame work? — matz@... (Yukihiro Matsumoto) 2001/07/09

まつもと ゆきひろです

[#30529] InterBase を使用したい — "YOUJI KUROKAWA" <CQE10242@...>

環境

22 messages 2001/07/09

[#30530] Question about script on the book "Ruby nyuumon" — NAWATE Masahiko <agul@...>

縄手@松江と言います。

17 messages 2001/07/09
[#30531] Re: Question about script on the book "Ruby nyuumon" — rubikitch <rubikitch@...> 2001/07/09

From: NAWATE Masahiko <agul@mag.shimane-u.ac.jp>

[#30533] Re: Question about script on the book "Ruby nyuumon" — NAWATE Masahiko <agul@...> 2001/07/09

縄手@松江です。

[#30734] UML クラス図と Ruby の記述についての対応 — Ken-ichi HASHIMOTO <ken@...>

橋本@福井県在住です。

13 messages 2001/07/28

[#30764] int/int => float? — matz@... (Yukihiro Matsumoto)

まつもと ゆきひろです

50 messages 2001/07/31
[#30785] Re: int/int => float? — Konishi@... (Hiromasa KONISHI) 2001/07/31

 KONISHI Hiromasaです。

[#30767] Re: int/int => float? — keiju@... (石塚圭樹) 2001/07/31

けいじゅ@日本ラショナルソフトウェアです.

[#30768] Re: int/int => float? — matz@... (Yukihiro Matsumoto) 2001/07/31

まつもと ゆきひろです

[#30770] Re: int/int => float? — Take_tk <ggb03124@...> 2001/07/31

たけ(tk)です。

[#30771] Re: int/int => float? — matz@... (Yukihiro Matsumoto) 2001/07/31

まつもと ゆきひろです

[ruby-list:30526] Re: open errno EALREADY triggerd

From: nobu.nakada@...
Date: 2001-07-09 12:17:30 UTC
List: ruby-list #30526
なかだです。

At Mon, 9 Jul 2001 13:58:37 +0900,
Inoue <inoue@motonet.co.jp> wrote:
> OS WindowsNT4.0 Server
> ruby 1.6.4 preview5

  すいません、Windows用は3種類あるので ruby --version の出力を
教えてください。

  cygwinだとすればおそらく以前から何度か出てる話でしょう。MSDN
Onlineでconnect()を調べるとこんなこと書いてあるので、
EINPROGRESSと同じ対応が必要なのかと思います。なにでどっちが返っ
て来るのか分からないのですが。

Until the connection attempt completes on a nonblocking socket,
all subsequent calls to connect on the same socket will fail
with the error code WSAEALREADY, and WSAEISCONN when the
connection completes successfully. Due to ambiguities in
version 1.1 of the Windows Sockets specification, error codes
returned from connect while a connection is already pending may
vary among implementations. As a result, it is not recommended
that applications use multiple calls to connect to detect
connection completion. If they do, they must be prepared to
handle WSAEINVAL and WSAEWOULDBLOCK error values the same way
that they handle WSAEALREADY, to assure robust execution.

Error Code	Meaning

WSAEINPROGRESS	A blocking Windows Sockets 1.1 call is in
		progress, or the service provider is still
		processing a callback function.

WSAEALREADY	A nonblocking connect call is in progress on
		the specified socket.

		Note In order to preserve backward
		compatibility, this error is reported as
		WSAEINVAL to Windows Sockets 1.1 applications
		that link to either Winsock.dll or Wsock32.dll.


Index: socket.c
===================================================================
RCS file: /cvs/ruby/src/ruby/ext/socket/socket.c,v
retrieving revision 1.45
diff -u -2 -p -r1.45 socket.c
--- socket.c	2001/06/22 15:48:59	1.45
+++ socket.c	2001/07/09 04:33:07
@@ -744,5 +744,9 @@ ruby_connect(fd, sockaddr, len, socks)
 #ifdef EINPROGRESS
 	      case EINPROGRESS:
-#if defined __CYGWIN__
+#endif
+#ifdef EALREADY
+	      case EALREADY:
+#endif
+#if (defined EINPROGRESS || defined EALREADY) && defined __CYGWIN__
 		{
 		    struct timeval tv;
@@ -751,5 +755,4 @@ ruby_connect(fd, sockaddr, len, socks)
 		    rb_thread_wait_for(tv);
 		}
-#endif
 #endif
 		thread_write_select(fd);


-- 
--- 僕の前にBugはない。
--- 僕の後ろにBugはできる。
    中田 伸悦

In This Thread