For Programmers: Free Programming Magazines  


Home > Archive > PERL POE > January 2007 > Problem with POE::Component::Server::TCP









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Problem with POE::Component::Server::TCP
Ian Blair

2007-01-25, 7:17 pm

Hi=20all,

I=20am=20pretty=20new=20to=20POE,=20and=
20I'm=20using=20POE::Component::Se=
rver::TCP=20to
received=20messages=20relayed=20from=20a
=20Big=20Brother=20server,=20and=20=
it=20successfully
accepts=20about=201000=20messages=20per=
20minute.=20=20Unfortunately=20it=20=
also=20has=20the
odd=20'hicup'=20every=20two=20or=20three
=20minutes,=20and=20stops=20accept=
ing=20connections
for=20a=20second=20or=20two. =20=20I=20don't=20think=20it's=20a=20net
work=20=
problem,=20because=20if=20I
telnet=20to=20localhost=20on=20the=20POE
=20server=20whilst=20the=20issue=20=
is=20occuring,=20the
connection=20doesn't=20go=20through=20un
til=20BB=20messages=20start=20gett=
ing=20through
again. =20=20I=20was=20wondering=20if=20anyone=
20else=20has=20had=20any=20e=
xperiences=20like=20this
with=20POE? =20=20I've=20managed=20to=20compact=20my
=20code=20to=20what=20i=
s=20below,=20but=20the
issue=20still=20occurs. =20=20Any=20chance=20you=20could=20take=
20a=20look?=


CODE:

#!/usr/bin/perl=20-w

use=20strict;
use=20POE=20qw(Component::Server::TCP);
=20=20=20=20
POE::Component::Server::TCP->new(
=20=20=20=20Port=20=20=20=20=20=20=20=20
=20=20=20=20=20=20=20=3D>=201984,
=20=20=20=20ClientInput=20=20=20=20=20=2
0=20=20=3D>=20sub{},
=20=20=20=20ClientDisconnected=20=3D>=20sub{},
);

Many=20thanks,
Ian

________________________________________
______________________________
This=20email=20has=20been=20scanned=20by
=20the=20MessageLabs=20Email=20Sec=
urity=20System.
For=20more=20information=20please=20visi
t=20http://www.messagelabs.com/ema=
il=20
________________________________________
______________________________
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com