Component::Server::TCP tcp wrappers suggestion

------=_Part_187939_32561179.1161180055780
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi all,

I'm a newbie to POE, so be nice :)

IMHO, it would  be great if Component::Server::TCP, had support for tcp
wrappers. Right know I'm using Net::TCPwrappers for this.
But if POE supported it would be a must, I think.

Thanks,

-- 
../bras

------=_Part_187939_32561179.1161180055780--
0
jorge
10/18/2006 2:00:55 PM
perl.poe 1573 articles. 0 followers. Follow

1 Replies
468 Views

Similar Articles

[PageSpeed] 46

On Oct 18, 2006, at 10:00, Jorge Bras wrote:

> IMHO, it would  be great if Component::Server::TCP, had support for  
> tcp
> wrappers. Right know I'm using Net::TCPwrappers for this.
> But if POE supported it would be a must, I think.

Looking at the SYNOPSIS for Net::TCPwrappers, you should be able to  
do something similar from POE::Component::Server::TCP's  
ClientConnected callback if POE gave you the filehandle of the  
connecting socket.

-- 
Rocco Caputo - rcaputo@pobox.com


0
rcaputo
10/27/2006 2:22:01 AM
Reply:

Similar Artilces:

Disconnecting Component::Server::TCP when Component::Client::TCP disconnects
This code comes from the TCP port redirection with components in the poe.perl.org website cookbook (http://poe.perl.org/?POE_Cookbook/ TCP_Port_Redirection_With_Components). I swapped the client and server roles. Basically I want the client component to connect to a remote server first, then start up the server component to listen for incoming connections. It all seems to work fine except when the connection is lost to the remote server, the client server never shuts down. In other words...I can't figure out why the server component does not recieve the "shutdown" comm...

Watermarks with POE::Component::Server::TCP
Hi list! I'm already more than a week to figure out how I can get watermarks working with POE::Component::Server::TCP. I figured out this component has a undocumented 'feature': Watermarks!! It goes like this in TCP.pm: *paste* my $high_mark_level = delete $param{HighMark}; my $low_mark_level = delete $param{LowMark}; my $high_event = delete $param{ClientHigh}; my $low_event = delete $param{ClientLow}; # this is ugly, but now its elegant :) grep++ my $foo = grep { defined $_ } ($high_mark_level, $low_mark_level, $high_event, $low_event)...

Problem with POE::Component::Server::TCP
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=20network=20= problem,=20because=20if=20I telnet=20to=20localhost=20on=20the=20POE=20server=20whilst=20the=20issue=20= ...

Memory Leak in POE::Component::Server::TCP
Either there is a memory leak in PoCo::Server::TCP or I don't know how to properly discard the $heap. Below I created an example that replicates the problem. Each time I connect to port 31599 and type in "hello", the program simply echos what I type in; however, as you can see from the "ps waux | grep ServerTCPTest.pl", the memory consumed by it, goes up a few bytes each time. The PoCo server takes 4788 bytes, then goes up to 4760 after typing in "hello", then it goes up to 4872 after typing in "hello" again. I'm using PoCo::...

Preventing connections with POE::Component::Server::TCP
Hi, I have a POE::Component::Server::TCP. I'd like to prevent connections under certain circumstances, even though I'm still in the event loop. Is there a way to do this? That is I want my program to run, I just don't want to allow connections at certain times. Thanks Jay On Fri, Mar 05, 2004 at 10:49:03PM -0600, Jay Strauss wrote: > > I have a POE::Component::Server::TCP. I'd like to prevent connections under > certain circumstances, even though I'm still in the event loop. Is there a > way to do this? That is I want my program to r...

stdout from POE::Component::Server::TCP as daemon
Hi folks, Im experimenting with POE, POE::Component::Server::TCP to implement a simple daemon (Proc::Daemon) which listens to requests to update one or many RRD databasefiles. So this daemon will use: Proc::Daemon POE::Component::Server::TCP RRDs I am playing around: http://www.systemdatarecorder.org/poe1 my application starts fine but I expect to see all STDOUT, STDERR under the dameon's log. I should read more, I know. If I defined in my Proc::Daemon::Init the STDOUT and STDERR like below: eval { Proc::Daemon::Init( { child_STDOUT => "$slog", ...

Neophite POE::Component::Server::TCP density
I'm obviously new at this POE thing. I'm trying to understand performance parameters for POE and cobbled the code below mosty by cutting and pasting from the manual pages. The server below driven by the client further below hangs when it consumes all the available socket buffers. What have I screwed up? #!/usr/bin/perl use POE; use POE::Component::Server::TCP; use IO::Socket; use Time::HiRes qw( time ); use strict; use warnings; sub accept_handler { my ($socket, $remote_address, $remote_port) = @_[ARG0, ARG1, ARG2]; ...

Memory Leak in POE::Component::Server::TCP #2
I transposed two numbers... it should be 4788 bytes to 4860, then to 4872. ...

Memory Leak in POE::Component::Server::TCP #3
Allen, could the memory leak you discovered in POE::Filter::Reference be the cause of the memory leak in PoCo::Server::TCP? I wrote a a spider based on Randal Schwartz's POE article. This version of the spider uses PoCo::TCP::Server I've included the code below. The spider works well but it has a big leak. The more URLs that the spider looks at, the higher the RAM goes up. It reaches something like 31MB of RAM after spidering several thousands of URLs and never frees up the memory. I'm cleaning up the $heap and I am not using any session aliases, but that hasn&#...

RE: Memory Leak in POE::Component::Server::TCP
Oops, didn't reply to group as well: Glancing at your code, I don't see any use of the POE::Filter::Reference = module, so probably not and if it was, you wouldn't have a problem with = PoCO::Component::Server::TCP with POE 0.34 anyway. If you aren't using = POE 0.34, you should probably use it. =20 I also have found that POE 0.29, while likely to have bugs that got = fixed later, seemed very stable for me and less leaky...at least the = things I have been using in POE didn't leak until I upgraded to 0.33. =20 Since then, I seem to have a few leaks, including t...

POE::Component::Server::TCP
--0-1372696069-1314667215=:41879 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Hi,=0A=A0 =A0 I am trying to debug an issue with POE::Component::Server::TC= P where the client sessions do not get closed correctly when using POE::Com= ponent::Client::TCP (1.311/1.312) but work as expected when using 1.294.=0A= =0A=A0 =A0 I am maintaining global variables to manage information on numbe= r of clients that are connected/disconnected by updating them in ClientConn= ected() and ClientDisconnected() methods, which I would like to avoid and u= se th...

How do you set utf-8 on the socket in POE::Component::Server::tcp?
I am using POE::Component::Server::tcp and receiving utf8 data through the socket. How can I set the utf8 flag on the socket? as in binmode($fh, ':utf8'). Thanks Martin -- Martin J. Evans Easysoft Limited http://www.easysoft.com Martin J. Evans wrote: > I am using POE::Component::Server::tcp and receiving utf8 data through > the socket. How can I set the utf8 flag on the socket? as in > binmode($fh, ':utf8'). > > Thanks > > Martin I should have pointed out I'm using client_input handler and not doing much of the work mys...

RE: Memory Leak in POE::Component::Server::TCP #2
I will try it out this weekend, but I did look at the latest = POE::Filter::Reference module and the code I narrowed the leak to is = still unchanged. =20 Get back to you with results soon. ________________________________ From: Rocco Caputo [mailto:rcaputo@pobox.com] Sent: Sat 5/27/2006 2:09 PM To: poe@perl.org Subject: Re: Memory Leak in POE::Component::Server::TCP POE 0.34 and 0.35 include a number of POE::Filter fixes. When you=20 have a chance, can you check the leak still exists? A test case=20 would rock, too. -- Rocco Caputo - rcaputo@pobox.com On Apr 3...

POE::Component::Server::TCP bug fixes, possibly incompatible
Greetings, During the course of writing a tutorial I've been noticing discrepancies between POE::Component::Server::TCP's documentation and code. I have filed some initial tickets: http://rt.cpan.org/Ticket/Display.html?id=47855 http://rt.cpan.org/Ticket/Display.html?id=47854 http://rt.cpan.org/Ticket/Display.html?id=47853 http://rt.cpan.org/Ticket/Display.html?id=47852 Most are pretty straightforward. However, 47855 requires a bit of discussion. The problem is that the ClientConnected callback does not actually receive a socket in ARG0. ARG0 has b...

Web resources about - Component::Server::TCP tcp wrappers suggestion - perl.poe

Resources last updated: 12/24/2015 4:24:50 AM