<?xml version="1.0" encoding="windows-1252"?>
<node id="1012615" title="Possible issue with pre-forked POE IKC Server implementation" created="2013-01-10 03:58:03" updated="2013-01-10 03:58:03">
<type id="115">
perlquestion</type>
<author id="1012609">
rbhardwaj</author>
<data>
<field name="doctext">
&lt;p&gt;
Hi Perl Monks,
&lt;BR&gt;&lt;BR&gt;
I've a query regarding usage of prefork implementation of POE IKC Server. 
&lt;BR&gt;&lt;BR&gt;
POE Children stop entertaining further connection requests as soon as they are done with first connection request per child.
&lt;BR&gt;&lt;BR&gt;
Below is the code snippet of core module POE::Component::IKC::Server which seems to cause this behavior. Commenting the call to '_select_define' in 'else' part resolves this issue as we shouldn't stop accepting further connection requests.
&lt;BR&gt;&lt;BR&gt;
Before going to module author; i would like to ensure that my understanding is indeed correct
Please advise.
&lt;BR&gt;&lt;BR&gt;
P.S. : i can share sample client/server code to simulate this scenario
&lt;BR&gt;&lt;BR&gt;
&lt;/p&gt;
&lt;code&gt;
......
    return unless $heap-&gt;{children};

    if (--$heap-&gt;{connections} &lt; 1) {
        # DEBUG and 
                warn "$$: {{{{{{{{{{{{{{{ Game over\n";
        $kernel-&gt;delay('waste_time');
        _delete_wheel( $heap );
        $::TRACE_REFCNT = 1;

    } else {
        # DEBUG and 
                warn "$$: $heap-&gt;{connections} connections left\n";
        _select_define($heap, 0);
    }
......
&lt;/code&gt;</field>
</data>
</node>
