Re: POE::Component::Server::TCP bug fixes, possibly incompatible

2009-07-16 Thread Nick Williams
Regarding the passing of the socket into clientconnected - I've wished for this in the past, in order to be able to modify TCP options on the socket, which didn't seem possible in the past... It would be nice if that was possible to get at this (either via some available API which I just haven't no

Re: Maximum concurrent TCP connections

2007-06-06 Thread Nick Williams
This is great information: I've wondered a lot recently about the performance tradeoffs between the different loops and haven't found any useful documentation. Is any of this lore written down anywhere? Nick Bob Maccione wrote: Event::Lib is a really nice library for doing simple POE-like st

Re: Can't locate object method "_init_keymap" via package "POE::Wheel::ReadLine"

2007-03-06 Thread Nick Williams
Jmax wrote: Matt Sickler wrote: Generally $object->_method() style names (with the leading underscore) represent private functions that are not documented (at least not on the public interface), subject to change without notice, and should not be used. At the very least, your error is simp

Re: Brace yourself. POE 0.38 is uploaded to PAUSE.

2006-09-19 Thread Nick Williams
Randal L. Schwartz wrote: "Rocco" == Rocco Caputo <[EMAIL PROTECTED]> writes: Rocco> + The sig() reference count has been removed. There will be much rejoicing, Rocco> and probably some gnashing of teeth. I've not been following. Is this an even-numbered week or an odd number

Re: Brace yourself. POE 0.38 is uploaded to PAUSE.

2006-09-19 Thread Nick Williams
I now have a new problem (don't I always ;-). ReadLine has a modification that I didn't spot earlier (due to our inability to use the last few releases) that doesn't make sense to me. The change labelled r2098 (which went into 0.37, I believe) does this: 2006-09-05 01:41:11 (r2098) by rcaput

Re: POE 0.38 change of plans

2006-09-10 Thread Nick Williams
Rocco Caputo wrote: The sig() reference count rollback went easier than planned. It's done, tested, and committed now. People with extra concerns about it should consider testing against the repository before the next release. It was so easy that I'm going to add the sig_chld() watcher an

Re: Component::Client::TCP and a flurry of short messages

2006-08-31 Thread Nick Williams
lanas wrote: Folks, Using POE::Component::Client::TCP, I want to send several short messages to a server. The server expects each message as a stand-alone message so that it knows that the first byte is a command, the second 4 four bytes a data length, etc... But when I send 4 short message

Re: signal design discussions from IRC, leading up to 0.33's change of sig() persistence

2006-08-23 Thread Nick Williams
Rocco Caputo wrote: Attached as a gzipped text file. Sorry for posting a "binary", but I couldn't pass up the 3:1 compression. Please quote relevant parts of the discussion if you want to comment on things. Total time to cull and clean this, about 90 minutes. I hope it explains the mot

Re: memory (session) leaks in perl

2006-08-23 Thread Nick Williams
Firstly, thanks for the in-depth reply! Some thoughts interleaved below... Rocco Caputo wrote: On Aug 22, 2006, at 14:06, Nick Williams wrote: Rocco Caputo wrote: Do you have a use case where it's impossible to do something under the new behavior? I'm working under the assumpt

Re: memory (session) leaks in perl

2006-08-22 Thread Nick Williams
Rocco Caputo wrote: Do you have a use case where it's impossible to do something under the new behavior? I'm working under the assumption that a session can always find a way to call sig(YOUR_SIGNAL_HERE => undef) when it's ready to be destroyed. "When it's ready to be destroyed" is th

Re: memory (session) leaks in perl

2006-08-21 Thread Nick Williams
, e.g. $kernel->sig('uidestroy', 'do_something'); that will now increment the reference count of the session and therefore make that session persistent until the signal handler is deleted via something (and note, not within the _stop event, since we don't get tha

Re: memory (session) leaks in perl

2006-08-03 Thread Nick . Williams
istent until the signal handler is deleted via something (and note, not within the _stop event, since we don't get that far). Nick. > > -Mathieu > > > --- Nick Williams <[EMAIL PROTECTED]> wrote: > > > So, I've found the reason that recent releases of POE > &

memory (session) leaks in perl

2006-08-02 Thread Nick Williams
So, I've found the reason that recent releases of POE cause me to get memory leaks - I know others have had problems also, so I wanted to get an open discussion of what I'm being bitten by and possible ways to workaround this. It turns out for me that my sessions aren't being garbage collected

Re: Improving performance in a POE application?

2006-06-09 Thread Nick Williams
I never knew about POE::Devel::Profiler and I'm learning rapidly about it now with my own visualizer. Most cool. However it highlights something I've wanted for a while: names on sessions. I'm just referring to something symbolic that can be attached to sessions in order to work out in debugger

Re: POE::Wheel::ReadLine

2006-01-13 Thread Nick Williams
Rob Bloodgood wrote: 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-forw

Re: Newbie questions and testing

2005-11-30 Thread Nick Williams
We're using POE to drive a system that manages deployment and failover of critical applications. The system is required to have complete availability. Any single instance manages hundreds of machines running hundreds of heavy applications. It's all built using POE (yep, we're mad :). It all wo

Re: Client::TCP question

2005-10-17 Thread Nick Williams
The normal disconnection happens if the server closes the socket without error. So, your server is immediately closing the socket after sending the reply. This means that if you treat that as a failure and try to do the same thing again, you'll get exactly the same behaviour each time. You need

Re: 0.32 default setting SIGCHLD to IGNORE breaks $?

2005-10-14 Thread Nick Williams
This misses the point. There are modules that pre-exist that invoke external shell commands (by backtick, or system), often for commands that are not expected to take any time. For a program using POE 0.31, these would've just worked. Using POE 0.32, any proper error checking in those modules

Bug in component Client::TCP...

2005-04-25 Thread Nick Williams
A strange one, so I'd like to solicit some opinions :-). Client::TCP starts up with a 'server' wheel stashed away in the heap as a POE::Wheel::SocketFactory while it's waiting for the connection to occur. Once the connection is successful, it changes it's {server} in the heap to be a POE::Wheel:

Re: POE::Wheel::Run on Win32, patch attached

2005-04-13 Thread Nick Williams
Arthur Bergman wrote: On 13 Apr 2005, at 11:49, Merijn Broeren wrote: >> >> kill 9,$$; :-) >> > Did you fix that then? The perlfork manpage makes it sound like there > will be leaks all over the place. > > Hmmm.. to be honest I haven't actually touched the win32 code at all... What is the specific

Re: POE::Wheel::Run on Win32, patch attached

2005-04-11 Thread Nick . Williams
On Mon, 11 Apr 2005, Bas Schulte wrote: > > On maandag, apr 11, 2005, at 16:03 Europe/Amsterdam, Merijn Broeren > wrote: > > > My collegue Nick Williams and I had a stab at making POE::Wheel::Run > > work on Win32. > > Isn't that like trying to sail the ocea

Re: New PoCo Guidelines

2004-08-13 Thread Nick Williams
Chris Fedde wrote: On Tue, 10 Aug 2004 07:59:03 -0600 "Wiggins d Anconia" wrote: +-- | I'll add another. I think at the very least POE (with the 'E') needs to | stay intact. I know the "chatting" convention has been to use 'PoCo', | but to keep the two related I think the full

Re: PoCo::IRC, nicks in use, and sessions

2004-04-18 Thread Nick . Williams
In your code snippet, despite what you print out, you're not actually changing $heap->{nick}, so you're reconnecting with the same name as before... Nick. On Sun, 18 Apr 2004, Ciro wrote: > Psilon, my modular POE IRC bot, is coming along fairly well. I've run > into a bit of a snafu though. If

Re: Proposal: Registered PIDs

2004-03-10 Thread Nick . Williams
[been on holiday and just found this email... sorry for slow response] On Sun, 29 Feb 2004, Rocco Caputo wrote: > On Sat, Feb 14, 2004 at 06:53:44AM -0500, [EMAIL PROTECTED] wrote: > > > > Taking Chris' question further... why not implement wait queues (I'm > > thinking along the lines of NT). A

Re: Shutting down kernel

2004-02-17 Thread Nick Williams
Rocco Caputo wrote: On Mon, Feb 16, 2004 at 04:58:42PM -0600, Luke A. Kanies wrote: Is there a "stop" analog to "$poe_kernel->run()"? Yes. An experimental stop() was introduced in version 0.28. Most cool! I didn't know about this until now - I've just switched over to using it and it

Re: Proposal: Registered PIDs

2004-02-14 Thread Nick . Williams
Taking Chris' question further... why not implement wait queues (I'm thinking along the lines of NT). Any session could declare it's interest on a waitable object... and anyone with a reference to that object could call wakeup on it. SIGCHLD handling is therefore just a special case of this - you

Re: POE::Session->call()

2004-02-11 Thread Nick Williams
Scott wrote: Nick Williams wrote: Scott wrote: [...] If you're really only storing data, you really should use an object OR package in the ways I mentioned above. Atleast, if you have any desire to maintain efficiency. Now here I must note, that I didn't come up with the idea of

Re: POE::Session->call()

2004-02-11 Thread Nick Williams
Scott wrote: [...] If you're really only storing data, you really should use an object OR package in the ways I mentioned above. Atleast, if you have any desire to maintain efficiency. Now here I must note, that I didn't come up with the idea of removing inter-session calling all together. I

POE::Component::Client::TCP recklessly removing aliases?

2003-11-06 Thread Nick Williams
POE::Component::Client::TCP can take an Alias parameter and it will set this alias onto the session on startup of the Session. It does not set the alias on reconnect. However, whenever the shutdown state is entered (e.g. connection dies), it removes the alias. Which means you have to manually m