I'm attempting to spawn some ikc clients when I startup my ikc server.
$worker->__spawn();
I keep getting the following error on the console and was wondering what it
meant
32299: Remote kernel 'servername-49fe523600007e2b' already exists
#############################################################
sub __spawn {
my $class = shift;
my $addr = $class->IP || '127.0.0.1';
my $port = $class->PORT || 5667;
## spawn all the ikc client
my $server = POE::Component::IKC::Client->spawn(
ip => $addr,
port => $port,
name => "Client$$",
on_connect => sub {
POE::Session->create(
package_states =>
## extract all subroutines that don't start with "__"
## and allocate them as states:
[
(__PACKAGE__) => [ do {
no strict 'refs';
grep { !/^__/ and defined &$_ } keys %{
__PACKAGE__ . "::" };
} ],
($class) => [ $class->SUBSCRIBE_METHODS ]
],
## pass args into _start:
args => [$class]
);
}
);
return $server;
}