Skip Menu |

This queue is for tickets about the POE CPAN distribution.

Report information
The Basics
Id: 47853
Status: resolved
Worked: 15 min
Priority: 0/
Queue: POE

People
Owner: BINGOS [...] cpan.org
Requestors: mlf-bitcard [...] shoebox.net
Cc:
AdminCc:

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



Subject: POE::Component::Server::TCP - InlineStates and friends are for clients
The documentation for InlineStates, PackageStates, and ObjectStates includes the following disclaimer: Remember: These InlineStates handlers will be added to the main listening session, not to every connection. A yield() in a connection will not reach these handlers. In fact, the opposite is true. InlineStates et al are added to the client sessions, not the listener session. It's actually more useful that way, so I'm suggesting a documentation patch (attached).
Subject: doc.patch
--- TCP.pm-orig 2009-07-13 19:39:37.000000000 -0800 +++ TCP.pm-mod 2009-07-13 19:44:57.000000000 -0800 @@ -910,8 +910,8 @@ named callbacks. Its syntax is that of POE:Session->create()'s inline_states parameter. -Remember: These InlineStates handlers will be added to the main -listening session, not to every connection. A yield() in a connection +Remember: These InlineStates handlers will be added to the client +sessions, not to the main listening session. A yield() in the listener will not reach these handlers. If POE::Kernel::ASSERT_USAGE is enabled, the constructor will croak() if it @@ -924,8 +924,8 @@ and the events they will handle. The arrayref must follow the syntax for POE::Session->create()'s object_states parameter. -Remember: These ObjectStates handlers will be added to the main -listening session, not to every connection. A yield() in a connection +Remember: These ObjectStates handlers will be added to the client +sessions, not to the main listening session. A yield() in the listener will not reach these handlers. If POE::Kernel::ASSERT_USAGE is enabled, the constructor will croak() if it @@ -939,8 +939,8 @@ follow the syntax for POE::Session->create()'s package_states parameter. -Remember: These PackageStates handlers will be added to the main -listening session, not to every connection. A yield() in a connection +Remember: These PackageStates handlers will be added to the client +sessions, not to the main listening session. A yield() in the listener will not reach these handlers. If POE::Kernel::ASSERT_USAGE is enabled, the constructor will croak() if it
Subject: Re: [rt.cpan.org #47853] POE::Component::Server::TCP - InlineStates and friends are for clients
Date: Fri, 17 Jul 2009 08:52:34 +0100
To: Michael Fowler via RT <bug-POE [...] rt.cpan.org>
From: "Chris 'BinGOs' Williams" <chris [...] bingosnet.co.uk>
On Mon, Jul 13, 2009 at 11:51:59PM -0400, Michael Fowler via RT wrote: Show quoted text
> Mon Jul 13 23:51:58 2009: Request 47853 was acted upon. > Transaction: Ticket created by mlfowler > Queue: POE > Subject: POE::Component::Server::TCP - InlineStates and friends are for > clients > Broken in: 1.006 > Severity: Normal > Owner: Nobody > Requestors: mlf-bitcard@shoebox.net > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=47853 > > > > The documentation for InlineStates, PackageStates, and ObjectStates > includes the following disclaimer: > > Remember: These InlineStates handlers will be added to the main > listening session, not to every connection. A yield() in a > connection > will not reach these handlers. > > In fact, the opposite is true. InlineStates et al are added to the > client sessions, not the listener session. It's actually more useful > that way, so I'm suggesting a documentation patch (attached).
Thanks applied to repo as r2568 http://github.com/bingos/poe/commit/346e508eec1f472af4a76797c1e43cc526a042de -- Chris Williams aka BinGOs PGP ID 0x4658671F http://www.gumbynet.org.uk ==========================
Download (untitled)
application/pgp-signature 189b

Message body not shown because it is not plain text.

Closing ticket.