Skip Menu |
 

This queue is for tickets about the POE CPAN distribution.

Report information
The Basics
Id: 33684
Status: rejected
Priority: 0/
Queue: POE

People
Owner: Nobody in particular
Requestors: ralph.lu [...] bluecoat.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



MIME-Version: 1.0
X-Spam-Status: No, hits=-2.6 required=8.0 tests=BAYES_00,HTML_MESSAGE,SPF_PASS
Content-Class: urn:content-classes:message
X-Virus-Checked: Checked by ClamAV on 16.mx.develooper.com
Content-Type: multipart/mixed; boundary="----_=_NextPart_001_01C87A6E.3781C9DB"
X-MS-Tnef-Correlator:
Received: from x1.develooper.com (x1.develooper.com [63.251.223.170]) by diesel.bestpractical.com (Postfix) with SMTP id A12E94D8079 for <bug-POE [...] rt.cpan.org>; Thu, 28 Feb 2008 21:49:15 -0500 (EST)
Received: (qmail 1977 invoked from network); 29 Feb 2008 00:59:11 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 29 Feb 2008 00:59:11 -0000
Received: from whisker.bluecoat.com (HELO whisker.bluecoat.com) (216.52.23.28) by 16.mx.develooper.com (qpsmtpd/0.43rc1) with ESMTP; Thu, 28 Feb 2008 16:59:03 -0800
Received: from bcs-mail03.internal.cacheflow.com ([10.2.2.95]) by whisker.bluecoat.com (8.13.8/8.13.8) with ESMTP id m1T0wgLD025953 for <bug-POE [...] rt.cpan.org>; Thu, 28 Feb 2008 16:58:43 -0800 (PST)
Delivered-To: cpan-bug+POE [...] diesel.bestpractical.com
Subject: POE::Wheel::ReadWrite I/O non-bloking error
Return-Path: <ralph.lu [...] bluecoat.com>
Thread-Index: Ach6bnB9dhSsnNm0SNu+OVyWXSNS1A==
X-Original-To: bug-POE [...] rt.cpan.org
X-Spam-Check-BY: 16.mx.develooper.com
Date: Thu, 28 Feb 2008 17:00:13 -0800
X-Spam-Level: *
X-MS-Has-Attach: yes
Thread-Topic: POE::Wheel::ReadWrite I/O non-bloking error
Message-Id: <B583FBF374231F4A89607B4D08578A4333BDFC [...] bcs-mail03.internal.cacheflow.com>
X-Mimeole: Produced By Microsoft Exchange V6.5
To: <bug-POE [...] rt.cpan.org>
From: "Lu, Ralph" <ralph.lu [...] bluecoat.com>
Content-Length: 0
Content-Description: q.pl
content-type: application/octet-stream; name="q.pl"
content-disposition: attachment; filename="q.pl"
Content-Transfer-Encoding: base64
Content-Length: 1304
Download q.pl
text/x-perl 1.2k

Message body is not shown because sender requested not to inline it.

Content-Description: err
content-type: application/octet-stream; name="err"
content-disposition: attachment; filename="err"
Content-Transfer-Encoding: base64
Content-Length: 2542
Download err
application/octet-stream 2.4k

Message body not shown because it is not plain text.

Content-Type: multipart/alternative; boundary="----_=_NextPart_002_01C87A6E.3781C9DB"
Content-Length: 0
content-type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: us-ascii
Content-Length: 365
Download (untitled) / with headers
text/plain 365b
Hi, I am trying to create a script which handles non-blocking user input. It asked me to send the error message when I tried to run it. I attached the error log and the perl script for your reference. It took me a couple of hours trying to figure out what happened, but I still couldn't get anything. Thank your very much for your comments, Ralph
content-type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: us-ascii
Content-Length: 2410
MIME-Version: 1.0
In-Reply-To: <B583FBF374231F4A89607B4D08578A4333BDFC [...] bcs-mail03.internal.cacheflow.com>
X-Mailer: MIME-tools 5.418 (Entity 5.418)
Content-Disposition: inline
Charset: utf8
References: <B583FBF374231F4A89607B4D08578A4333BDFC [...] bcs-mail03.internal.cacheflow.com>
Message-Id: <rt-3.6.HEAD-23876-1206223883-1584.33684-0-0 [...] rt.cpan.org>
Content-Type: text/plain
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Original-Encoding: utf-8
Content-Length: 255
Download (untitled) / with headers
text/plain 255b
Perl's select() only supports sockets. You cannot use it with STDIN/STDOUT. If you require user input on Windows, maybe you can use POE::Component::Server::TCP and Windows' TELNET.EXE. Alternatively, you can develop a graphical interface with POE & Tk.
MIME-Version: 1.0
X-Spam-Status: No, hits=-2.6 required=8.0 tests=BAYES_00,SPF_PASS
In-Reply-To: <rt-3.6.HEAD-23876-1206223883-1584.33684-6-0 [...] rt.cpan.org>
Content-Class: urn:content-classes:message
References: <RT-Ticket-33684 [...] rt.cpan.org> <B583FBF374231F4A89607B4D08578A4333BDFC [...] bcs-mail03.internal.cacheflow.com> <rt-3.6.HEAD-23876-1206223883-1584.33684-6-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
X-MS-Tnef-Correlator:
X-RT-Original-Encoding: us-ascii
Received: from x1.develooper.com (x1.develooper.com [63.251.223.170]) by diesel.bestpractical.com (Postfix) with SMTP id CE38A4D80E5 for <bug-POE [...] rt.cpan.org>; Mon, 24 Mar 2008 10:14:21 -0400 (EDT)
Received: (qmail 8043 invoked from network); 24 Mar 2008 14:14:20 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 24 Mar 2008 14:14:20 -0000
Received: from whisker.bluecoat.com (HELO whisker.bluecoat.com) (216.52.23.28) by 16.mx.develooper.com (qpsmtpd/0.43rc1) with ESMTP; Mon, 24 Mar 2008 07:14:15 -0700
Received: from bcs-mail03.internal.cacheflow.com ([10.2.2.95]) by whisker.bluecoat.com (8.14.2/8.14.2) with ESMTP id m2OEDWmw019000 for <bug-POE [...] rt.cpan.org>; Mon, 24 Mar 2008 07:13:32 -0700 (PDT)
Delivered-To: cpan-bug+POE [...] diesel.bestpractical.com
Subject: RE: [rt.cpan.org #33684] POE::Wheel::ReadWrite I/O non-bloking error
Return-Path: <ralph.lu [...] bluecoat.com>
X-Spam-Check-BY: 16.mx.develooper.com
X-Original-To: bug-POE [...] rt.cpan.org
Thread-Index: AciMaa09Dru7Ne5wSkayZLMbMG5hjwBT4QUg
Date: Mon, 24 Mar 2008 07:15:27 -0700
X-Spam-Level: *
X-MS-Has-Attach:
Thread-Topic: [rt.cpan.org #33684] POE::Wheel::ReadWrite I/O non-bloking error
Message-Id: <B583FBF374231F4A89607B4D08578A435CF7B9 [...] bcs-mail03.internal.cacheflow.com>
X-Mimeole: Produced By Microsoft Exchange V6.5
To: <bug-POE [...] rt.cpan.org>
Content-Transfer-Encoding: quoted-printable
From: "Lu, Ralph" <ralph.lu [...] bluecoat.com>
X-RT-Original-Encoding: utf-8
RT-Message-ID: <rt-3.6.HEAD-26970-1206368086-1300.33684-0-0 [...] rt.cpan.org>
Content-Length: 687
Download (untitled) / with headers
text/plain 687b
Hi, Thank you. But this works under Cygwin. I believe it will work under UNIX/LINUX too. Looks to me this PoCO doesn't work under Windows platform. Thanks, Ralph Show quoted text
-----Original Message----- From: RCAPUTO via RT [mailto:bug-POE@rt.cpan.org] Sent: Saturday, March 22, 2008 6:11 PM To: Lu, Ralph Subject: [rt.cpan.org #33684] POE::Wheel::ReadWrite I/O non-bloking error <URL: http://rt.cpan.org/Ticket/Display.html?id=33684 > Perl's select() only supports sockets. You cannot use it with STDIN/STDOUT. If you require user input on Windows, maybe you can use POE::Component::Server::TCP and Windows' TELNET.EXE. Alternatively, you can develop a graphical interface with POE & Tk.
MIME-Version: 1.0
In-Reply-To: <B583FBF374231F4A89607B4D08578A4333BDFC [...] bcs-mail03.internal.cacheflow.com>
X-Mailer: MIME-tools 5.418 (Entity 5.418)
Content-Disposition: inline
Charset: utf8
References: <B583FBF374231F4A89607B4D08578A4333BDFC [...] bcs-mail03.internal.cacheflow.com>
Message-Id: <rt-3.6.HEAD-18279-1208584909-1150.33684-0-0 [...] rt.cpan.org>
Content-Type: text/plain
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Original-Encoding: utf-8
Content-Length: 902
Download (untitled) / with headers
text/plain 902b
The following is a known problem with ActiveState, and I believe the vanilla/strawberry/chocolate versions of Perl on Windows: $heap->{readwrite} = POE::Wheel::ReadWrite->new ( InputHandle => \*STDIN, OutputHandle => \*STDOUT, Driver => POE::Driver::SysRW->new(), Filter => POE::Filter::Line->new(), InputEvent => User_Input, ErrorEvent => Input_Fail, FlushedEvent => Input_Shutdown ); print "child_event end\n"; The Perl built-in select() call is based on the winsock select() which only works on sockets. Therefore select() in perl cannot be used on console handles (STDIN & STDOUT) in ActiveState, vanilla, strawberry or chocolate Perl on Windows. Cygwin implements its own select() which is not based on WinSock. As a result, select() works for console filehandles under Cygwin Perl.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.