Re: PoCo::SNMP keeping requesting sessions alive for too long due to postback

2006-09-12 Thread Rob Bloodgood
Kenneth Flegal wrote: From what I have seen, when I call finish on a session for PoCo::SNMP I am unable to start a session for that same host again for the life of the program. The first request would work every time without fail but any subsequent requests made after creating a new PoCo::SNM

Re: Defunct processess help

2006-06-27 Thread Rob Bloodgood
Dougie! wrote: Spawn the Run queues and connect them back... Put each Reference in al element in an array in the heap. As you spawn off SNMP polling tasks, simply shift the reference fo the next Run Queue off the array and push it back on the end in a Round Robin fashion. Doing things this way

CPAN Upload: R/RD/RDB/POE-Component-SNMP-1.01.tar.gz

2006-04-25 Thread Rob Bloodgood
ur part > Request entered by: RDB (Rob Bloodgood) > Request entered on: Tue, 25 Apr 2006 00:44:45 GMT > Request completed: Tue, 25 Apr 2006 00:44:57 GMT

Re: POE::Wheel::ReadLine

2006-01-12 Thread Rob Bloodgood
lanas wrote: > Hi, > > When I use the POE::Wheel::ReadLine in the Cookbook I get, under SuSE 9.3, > the following errors before the prompt is shown: > > ignoring "\e[5~", since function 'history-search-backward' is not known > ignoring "\e[6~", since function 'history-search-forward' is not kn

Re: Wheel::Run and Proc::Daemon troubles

2005-09-08 Thread Rob Bloodgood
Hicks, Matthew wrote: >>Honestly, from here it looks like you're either doing it >>wrong, or there >>is an issue I'm quite ignorant of (VERY possible :). But if >>all you're >>trying to process is tail(1), then use POE::Wheel::FollowTail and >>hopefully you'll sidestep the problem. > > > I sta

Re: Wheel::Run and Proc::Daemon troubles

2005-09-08 Thread Rob Bloodgood
Hicks, Matthew wrote: >>Daemonizing is something you do with your program *before* you start >>POE. > > > I daemonize before creating any sessions or calling kernel->run(). > > >>I do daemonizing all the time. start program, daemonize, start poe. >>use wheel::run all you want. > > > Super!

Re: Wheel::Run and Proc::Daemon troubles

2005-09-07 Thread Rob Bloodgood
Hicks, Matthew wrote: > Rocco Caputo - [EMAIL PROTECTED] wrote: > >>Determine what Proc::Daemon::Init is doing. > > For consistency, I switched to the Net::Server::Daemonize (recommended > in other threads here). > > I'm basically working on the idea presented in the > POE::Wheel::FollowTail PO

Re: how POE handles long running functions/blocking

2005-04-19 Thread Rob Bloodgood
sir shz wrote: 1. functions that may take some time (e.g., a long loop) It blocks. 2. functions that wait on IO (either just waiting, or say reading a huge file) It blocks. Does it treat them the same way, by allocating short time slices? I was reading a little bit about Python/Twisted, it has a co

Re: anyone using any of the HTTP server components in a heavy use environment?

2005-03-24 Thread Rob Bloodgood
Bas Schulte wrote: Hi all, On donderdag, maa 24, 2005, at 22:04 Europe/Amsterdam, John Napiorkowski wrote: I'm wondering if anyone has used any of the HTTP servers that come with POE in a semiproduction/medium to heavy use environment? What I mean by this is something that might server 40-60 con

Re: PoCo SNMP: a couple questions

2004-12-21 Thread Rob Bloodgood
On Tue, Dec 21, 2004 at 09:45:03AM -0700, Jim wrote: > Rob Bloodgood wrote: > > That being said: it sounds like you're issuing 4 different OID requests. > > It also sounds like you're > > creating a session per VLAN. > > > > You ONLY create a session

Re: PoCo SNMP: a couple questions

2004-12-21 Thread Rob Bloodgood
On Mon, Dec 20, 2004 at 10:50:42AM -0700, Jim wrote: > I'm new to POE, so this could be relatively simple. My apologies if it > is, my search efforts turned up empty as I'm not sure what question to ask. Welcome! > Largely to learn POE, I'm doing a proof-of-concept with POE and > PoCo::SNMP to

Re[2]: An idea of HTTP chat server based on POE

2003-11-06 Thread Rob Bloodgood
Thursday, November 6, 2003, 9:39:58 AM, you wrote: PM> 2) If the server gets many simultanuous clients, refreshings bring extra PM> hits to the server. For example, if the refresh rate is 3 seconds, then PM> 1000 connections = 330/s hits, a big number. POE is based on non-blocking PM> multiplex

RE: Problems under 5.005.03

2003-02-04 Thread Rob Bloodgood
> Due to circumstances outside of my control, much of my development time > currently is being spent working within a perl 5.005.03 environment. In > this environment, I have found some problems with POE::Kernel and the > passing of arguments to the import method of Time::HiRes. The code in > que

RE: Changing Input Filters

2002-10-04 Thread Rob Bloodgood
> In order for the NTLM authentication to work, the connection to the > upstream proxy must be kept alive during steps 2-5. This means that > elegant solutions like PoCo::Client::HTTP are out of the question > since they explicitly terminate the connection after each request. Forgive me, but...

RE: PoCo::Child

2002-09-19 Thread Rob Bloodgood
It didn't install for me: ok 1 - use PoCo::Child ok 2 - session created ok 3 - read-only client started ok 4 - got stdout ok 5 - second instance ok 6 - got stderr ok 7 - done ok 8 - hard callbacks ok 9 - interactive client started ok 10 - client write ok 11 - quit tested ok 12 - client restarted

FollowTail SeekBack

2002-08-25 Thread Rob Bloodgood
I'm trying to figure out what is intended by the default behavior of "SeekBack" on P:W:FollowTail... it sez the default is to use 4096 bytes but the description implies that if the default is used, those 4096 bytes are just silently dropped? Whereas if a value is specified, and is larger than the

RE: POE and daemonization

2002-05-01 Thread Rob Bloodgood
> What is the convention for handling daemonization in a POE application? > > In particular, what I am wondering is whether typically one daemonizes > before $poe_kernel->run() or do the daemonization in one of the > "application manager" sessions. > > For example, I am considering using what I ca

RE: Multithreaded Forking. Wheel::Run

2002-03-14 Thread Rob Bloodgood
> > And the check_addr.pl program simply looks like this > > #!/usr/bin/perl > > my $email = <>; > > chomp($email); > > print 1; > > > > It doesn't seem to ever be able to read the data that check_addr > > sends back. Should I be doing this another way? > > POE::Wheel::Run expects to receive line

RE: PoCo::DBIAgent

2002-02-13 Thread Rob Bloodgood
> I've been tasked with migrating XML data from Postgres to Oracle. > However, some of our XML entities make Oracle choke (don't ask me > why, im the postgres guy, and it works in _my_ database...). So > I'm parsing over the XML data which already lives in postgres. > Take for example the followin

RE: Wheel::ReadWrite and moving a file

2002-01-03 Thread Rob Bloodgood
> On Wednesday 02 January 2002 10:46 pm, you wrote: > > On Monday 31 December 2001 12:08 am, you wrote: > > > > > > I guess I can refer myself to the Graceful Wheel Shutdown Cookbook hint > > since that directly addresses my problem. > > Not surprisingly that completely fixed the problem. More p

RE: POE Objects

2001-12-10 Thread Rob Bloodgood
> > > What do you mean by data driven? > > > It may be appropriate for UT::Session to act like a generic machine. > > If the machine treats the data it's given as instructions, it can do a > > lot more with less code. > Er, I am not entirly with you here. I think it sounds a little > dangerous as

Passing complex data via pipe

2001-11-15 Thread Rob Bloodgood
So, in my recent experience building Po:Co:DBIAgent, I had to go thru some really annoying chicanery to sucessfully pass a Storable record via a line-oriented interface. I ended up having to define my record seperator as a Network Newline(tm), eg "\r\n" because it turns out Storable embeds \n in

ANNOUNCEMENT: POE::Component::DBI 0.11

2001-11-13 Thread Rob Bloodgood
Just uploaded to PAUSE: file: $CPAN/authors/id/R/RD/RDB/POE-Component-DBIAgent-0.11.tar.gz size: 8937 bytes md5: 59ca46f8c906f72945a59b0c9b103a2f It would have been 0.10 but I messed up the URL. This *is* my first module. :-) Docs are a little thin but should be sufficient, updates welc

RE: POE::QueryAgent - Non-blocking DBI Component, alpha

2001-11-06 Thread Rob Bloodgood
--On vendredi 9 novembre 2001 13:33 -0500 [EMAIL PROTECTED] wrote: > On 09-Nov-2001 Eric Cholet wrote: >> I've started playing with samples/preforkedserver. Since I want >> mine to run as a daemon I added 'fork && exit;' just before the >> call to PreforkedServer->new. > > Detaching a daemon invo

POE::QueryAgent - Non-blocking DBI Component, alpha

2001-11-02 Thread Rob Bloodgood
OK, I've gotten this far on it, now I'm interested in input... Based on conversations earlier on this list, I've built a DBI query agent that runs in its own session and fires off a P::Wheel::Run to handle queries. It works for UPDATE/DELETE as well as SELECTs. However, I only run one helper,

RE: Silent exits

2001-09-28 Thread Rob Bloodgood
> -Original Message- > From: Rocco Caputo [mailto:[EMAIL PROTECTED]] > Sent: Friday, September 28, 2001 11:58 AM > To: Rob Bloodgood > Subject: Re: Silent exits > > > On Fri, Sep 28, 2001 at 11:27:35AM -0700, Rob Bloodgood wrote: > > > > > > So

Silent exits

2001-09-27 Thread Rob Bloodgood
OK, I have a major issue with POE, and I want to know how to make it go away. I'm confident it's there, I just haven't found it yet: Every now and then, since my program is (gasp!) not perfect, some kind of uncaught exception happens. Somebody or something gets an undef, and my session (which sh

RE: Non-blocking DBI?

2001-09-17 Thread Rob Bloodgood
> >>>>> "Rob" == Rob Bloodgood <[EMAIL PROTECTED]> writes: > > Rob> Does anybody know of a way to run a non-blocking DBI query? > Rob> Non-portable is ok with me, if it works with Oracle! :-) > > I've heard rumors that

Non-blocking DBI?

2001-09-17 Thread Rob Bloodgood
Does anybody know of a way to run a non-blocking DBI query? Non-portable is ok with me, if it works with Oracle! :-) But seriously, do we know about how to: * Send a query * treat the statement handle like a file handle (select()) * do something else * then handle the rows when the query (finall

RE: PoCo::Client::FTP

2001-09-13 Thread Rob Bloodgood
> On (09/13/01 10:08), Rob Bloodgood wrote: > > > I know that's not what you were hoping to hear but I've been > running on a > > shortage of tuits lately. I'll let U know when more is > available to tell. > > well, unfortunately, i cant wait on thi

RE: PoCo::Client::FTP

2001-09-13 Thread Rob Bloodgood
> well folks, i've just claimed PoCo::Client::FTP which i need as the base > for PoCo::Hylafax. anyone have grand suggestions and thoughts? ROb, if i > remember, you had some Net::* conversion ideas. i'm looking at Net::FTP > and its pretty nasty and i dont have hope for converting it. Well, as I

RE: Making PoCo::Server::TCP subclassable

2001-09-07 Thread Rob Bloodgood
> > As I am redesigning PoCo::Server::HTTP wanted to make > > PoCo::Server::HTTP a subclass of of Poco::S::TCP. > > > > Currently this is impossible so I end up having two sessions, one > > which handles the new socket and one which handles the request, this > > is inefficent at best. > > > > So I

RE: complications

2001-08-31 Thread Rob Bloodgood
> I have built an HTTP server sort of. > At the moment when I have 2 sustained sessions active everything freezes. > Well, the kernel still runs fine, all my delays work, but, no tcp > data gets > through to the clients. I really can't figure out why this is. The > sustained sessions flush pr

RE: Fun With Wheel::Run

2001-08-28 Thread Rob Bloodgood
> I'm replying to myself to say I figured it out already. I'll post working > code with good comments in a day or two, it might be helpful to others who > are struggling like myself :) POE IS LIKE THAT! hahah first, oh, 5 or six basic things I tried I did wrong then I asked and since answers wer

RE: POE chapter in APP2

2001-08-27 Thread Rob Bloodgood
> I'm writing the 2nd edition of Advanced Perl for ORA; one of the > many changes is a chapter on POE. The outline is essentially complete, and > will discuss the POE architecture, the "parts" at length, and build at > least one application. > > I'd like the folks whose brainchild this is (Rocco e

RE: new module POE::Filter::SyncStream

2001-07-31 Thread Rob Bloodgood
> > Why do SyncStreams exist, and what commonly uses them? I tried google > > searches for "syncstream" and "syncblock", but they didn't return > > anything that looked useful. Do SyncStreams have a more common name? > > Invented by me. Name made by me. (Hence the lack of google mentions.) > The

RE: Compiling POE on Windows2000

2001-07-30 Thread Rob Bloodgood
> Tada, here are test results on win2k: > > C:\Perl\bin\Perl.exe -Mblib -IC:\Perl\lib -IC:\Perl\lib -e "use > Test::Ha Which perl is this? (I'm asking cuz I just saw a weirdness w/ select() on LINUX, perl 5.6.1)

RE: Two way pipe and Win32 (Update)

2001-07-11 Thread Rob Bloodgood
http://www.modperl.com/perl_networking/errata.html#ch12 sez: Chapter 12: Multiplexed Applications I have recently learned that the Win32 port of Perl does not support select() on non-socket filehandles. This means that the select() function and the IO::Select class cannot be used to multiplex nor

RE: Two way pipe and Win32

2001-07-11 Thread Rob Bloodgood
> Interestingly, it gets stuck in the while loop, but never > actually prints anything out from the pipe. I had initially > thought this was because I should be calling IO::Handle->getln() > to read from the pipe, but for some reason that refuses to work > under any circumstances with the POE pip

RE: Session management

2001-06-18 Thread Rob Bloodgood
> in your event handler for incoming requests, do something like: > if ($heap->{still_retrieving}) { > push(@{$heap->{requestfifo}, [$postback_to_sender, @requestdata]); > } > in the retrieving routine when everything has arrived: > foreach(@{$heap->{requestfifo}}) { > either post($_ ...);

RE: Session management

2001-06-18 Thread Rob Bloodgood
> On Mon, Jun 18, 2001 at 12:35:56PM -0700, Rob Bloodgood wrote: > > this seems to work, but I worry that I'm slowing down my init a LOT by > > having all of these "pending" states to service (read, context > switch back > > and forth, constantly re-post

Session management

2001-06-18 Thread Rob Bloodgood
I'm interested in POE developers' comments about state management. Possibly my ideas about implementation are on a different track than others', but I found that in order to make my app 'POE-ized', I took what was essentially a set of related (by concept) actions, and put two states for each in m

RE: DBI Module for POE?

2001-05-25 Thread Rob Bloodgood
> How did you write this 'multiplexer' on the fetch? OK, I don't have alot of time, so I don't have lots of time to give a step-by-step rundown. But I think the code is pretty self-explanatory, and I don't mind answering questions later. We have a pair of states, get_hits and get_row (you would

RE: DBI Module for POE?

2001-05-25 Thread Rob Bloodgood
> I'm interested in doing some SQL queries from POE. Normally this > wouldn't > be an issue, but the queries I'm running will be taking an appreciable > amount of time, and it would be nice to do other stuff while > waiting for a > reply from the server. That being said, is there a PoCo::DBI mod

RE: HELP! Filter::HTTPD "Didn't want any more data"

2001-03-26 Thread Rob Bloodgood
> The message "Didn't want any more data" occurs during an HTTP POST > request when the request body overflows its Content-Length. It can > also happen in HTTP GET if there's any sort of request body. Why > would IE be overflowing its own Content-Length header? I don't know, especially since th

Event loops

2001-03-22 Thread Rob Bloodgood
I'm curious, should I be using C in my program(s)? I can't find any specifics on yes or no, only that POE supports it. From what I've gleaned about POE's operation, the most complex part of it is state management/context switching. Since Event (task switching, async looping) is written in C, do

Capturing session id's

2001-03-21 Thread Rob Bloodgood
In trying to make my app as long-lived and stable as possible, I've come up against a snag: In the even that my program fails, even when wrapped in an eval loop, when I try to re-start things, I find that there are existing sessions in memory, my previous incarnations of POE::Component::Server::TC

HELP! Filter::HTTPD "Didn't want any more data"

2001-03-20 Thread Rob Bloodgood
So I've got my project running, and naturally some tuning and bugfixing is in order. All of the changes are happening in my DBFetch module. Little modifications as to what gets incremented where, in the local heap. But alla sudden, my HTML reports are CRASHING the program!?! My HTML section wo

RE: How to implement Daemon?

2001-03-14 Thread Rob Bloodgood
> Requirement: > I want to create a daemon that would execute some cgi-scripts, once a day. It seems to me that you are making the problem more complex than it needs to be. If you want to execute a CGI script, one time, then you could simply cron the following call (using Perl's LWP) GET http://

Weirdness w/ Sockets fixed in 05?

2001-02-13 Thread Rob Bloodgood
So, I was running my server project under test load with 0.1204 (created w/ another POE server/session pair in about 15 minutes... POE is SOOO EASY!) and I saw a little weirdness that well, made my stomach turn: It would serve, say, the first hundred or so requests in a very reasonable amount of

RE: It *almost* makes sense...

2001-01-04 Thread Rob Bloodgood
OK, for starters let me say that I'm getting all of this working on a largely monkey-see, monkey-do basis... the stuff in /samples was invaluable for getting started, but somehow I doubt that if you were to re-write them now, most of them would be quite different. :-) > POE::Component::Server::TC

RE: It *almost* makes sense...

2001-01-04 Thread Rob Bloodgood
> well if all of these states are in the same session you should > put the wheel > reference on the heap and rather post an update event to your > fetch session. > using wheels with several sessions is probably not good, since wheels will > post states always back to their parent session. and you

RE: It *almost* makes sense...

2001-01-03 Thread Rob Bloodgood
> On Wed, Jan 03, 2001 at 01:52:43PM -0800, Rob Bloodgood wrote: > > > > That being the case, I started with Socketfactory.perl as my > starting point, > > to get me running w/ a tcp server out of the gate. > > (is there a "more efficient", "more idio

It *almost* makes sense...

2001-01-03 Thread Rob Bloodgood
Hi, I'm working on my first POE program (using POE 0.1203). It's purpose is to replace a hodgpodge of patches, scripts, and procedures between my database and (extremely busy) webserver. WHOA. :-) I mostly get POE, I think. I've even got some working code. But still, there is some weirdness