Re: memory checking

2000-01-19 Thread Joshua N Pritikin
On Wed, Jan 19, 2000 at 05:33:20PM +0100, [EMAIL PROTECTED] wrote: "Reference miscount in sv_replace() at blib/lib/Event.pm line 184." Whoa! I've never seen that. Can you post the output from 'perl -V'? Maybe I can try to reproduce the problem with exactly the same version of perl...

Re: memory checking

2000-01-19 Thread Joshua N Pritikin
On Wed, Jan 19, 2000 at 07:32:48PM +0100, [EMAIL PROTECTED] wrote: Perhaps you can do something like this: Event-timer(interval = 2, cb = sub { warn 'Event memory: ' . join ' ', Event::_memory_counters() }); I see. I took my first steps and recognized the format:

Re: memory checking

2000-01-19 Thread Joshua N Pritikin
On Wed, Jan 19, 2000 at 09:18:56PM +0100, [EMAIL PROTECTED] wrote: Just to become familiar with the debug feature before I use it in the real code I wrote a simple test script. I recognized the following: if I use unloop() to stop the loop, the watcher counter does not change. If I use the

Re: memory leak fixed?

2000-01-19 Thread Joshua N Pritikin
On Wed, Jan 19, 2000 at 04:00:03PM -0500, Joshua N Pritikin wrote: That's a cool test script. It certainly appears to be failing to cancel watchers and refusing to exit. I need to dust off my thinking cap... :-) I think I found the problem. Try the attached patch over 0.58. This patches

Re: watchers and garbage collection

2000-01-22 Thread Joshua N Pritikin
On Sat, Jan 22, 2000 at 12:13:38PM -0500, [EMAIL PROTECTED] wrote: JNP 'shutdown' method? I think you need to call 'cancel'. If you have JNP a subclass, you can override the cancel method to add your own JNP clean up: i don't subclass. i enclose the evnt object in my higher level

Re: data attribute

2000-01-23 Thread Joshua N Pritikin
On Sun, Jan 23, 2000 at 12:27:20PM -0500, [EMAIL PROTECTED] wrote: JNP On Sun, Jan 23, 2000 at 12:05:44PM -0500, [EMAIL PROTECTED] wrote: JNP What is wrong with this: JNP $watcher-{data} = ...; #? that breaks the OO rules. one shoudl never assume knowledge about the

Re: data attribute

2000-01-23 Thread Joshua N Pritikin
On Sun, Jan 23, 2000 at 12:52:17PM -0500, [EMAIL PROTECTED] wrote: maybe. i will run it by damian to get his take anyhow. at least document that so i feel better about it. OK but the direct access of the hash is not cool. adding methods via a public and documented path is sorta ok. but it

Re: data attribute

2000-01-23 Thread Joshua N Pritikin
On Sun, Jan 23, 2000 at 01:21:33PM -0500, Joshua N Pritikin wrote: On Sun, Jan 23, 2000 at 01:12:46PM -0500, [EMAIL PROTECTED] wrote: with sugar on top? /carrot stick or i will beat you with a large clue bat /stick OK, shall I call it 'data'? Still I really don't see

Re: Cleanup error message

2000-01-28 Thread Joshua N Pritikin
On Fri, Jan 28, 2000 at 08:33:15PM +0100, [EMAIL PROTECTED] wrote: I'm using assert() like statements in my code for self checking. Twice today, such a forced program termination reported more than I expected: - snip -- Attempt to free unreferenced scalar during global destruction. Use

Fwd: CPAN Upload: JPRIT/NetServer-ProcessTop-1.02.tar.gz

2000-01-28 Thread Joshua N Pritikin
: 7a7459c044d3bfbaff3e6d271fe1aebe No action is required on your part Request entered by: JPRIT (Joshua N. Pritikin) Request entered on: Fri, 28 Jan 2000 20:44:08 GMT Request completed: Fri, 28 Jan 2000 20:44:47 GMT Virtually Yours, Id: paused,v 1.68 1999/10/22 14:39:12 k Exp k

Re: Number of priority levels

2000-01-31 Thread Joshua N Pritikin
On Mon, Jan 31, 2000 at 11:25:11AM +0100, [EMAIL PROTECTED] wrote: Watching of watchers sounds really interesting! Oh? Would you use it like an extra timeout? For a single watcher, a simple timeout would surely have the same effect. But if there would be a watcher grouping feature

Re: new priority warning in the docs

2000-02-03 Thread Joshua N Pritikin
On Thu, Feb 03, 2000 at 01:28:33PM +0100, [EMAIL PROTECTED] wrote: after installing Event 0.62, I just discovered this (relatively new) warning in the description of the priority attribute: "You should not specify prio in the constructor. Use Cnice instead for an offset from the default

Re: var watcher expense

2000-02-03 Thread Joshua N Pritikin
On Thu, Feb 03, 2000 at 12:48:39PM -0500, Joshua N Pritikin wrote: On Thu, Feb 03, 2000 at 06:36:05PM +0100, [EMAIL PROTECTED] wrote: what about the costs of var watchers? I'm thinking about a slight redesign of my application which would include a lot of them (made and destroyed

Re: var watcher expense

2000-02-03 Thread Joshua N Pritikin
On Thu, Feb 03, 2000 at 07:21:03PM +0100, [EMAIL PROTECTED] wrote: They are implemented with perl's MAGIC. My experience is that MAGIC has a very small performance impact. Have you used TIEXXX? Var watchers are faster than TIE. Ah, that sounds good. By the way, is this special magic

Re: var watcher expense

2000-02-03 Thread Joshua N Pritikin
On Thu, Feb 03, 2000 at 07:42:23PM +0100, [EMAIL PROTECTED] wrote: This restriction can be relaxed in a future release if there is enough demand. As you surely expected ;-), the first demand just arrived with this message. OK. It was easier than I expected:

Fwd: CPAN Upload: JPRIT/Event-0.63.tar.gz

2000-02-03 Thread Joshua N Pritikin
/JPRIT/Event-0.63.tar.gz size: 63143 bytes md5: 4c12c5c342dbfb9fea4aaa2cbe15b86f No action is required on your part Request entered by: JPRIT (Joshua N. Pritikin) Request entered on: Thu, 03 Feb 2000 21:38:56 GMT Request completed: Thu, 03 Feb 2000 21:39:39 GMT Virtually Yours

Re: die defaults

2000-02-09 Thread Joshua N Pritikin
On Wed, Feb 09, 2000 at 10:00:57AM +0100, [EMAIL PROTECTED] wrote: I've had servers in production that start crashing and alert the user. Then I go in with ProcessTop and, without restarting, work around the problem. The user is impressed. So do I! And I was already impressed by

Re: group watchers

2000-02-09 Thread Joshua N Pritikin
On Wed, Feb 09, 2000 at 10:09:14AM +0100, [EMAIL PROTECTED] wrote: two slight suggestions for group watchers. Accidentally I wrote: $groupWatcher-add(\$i); where $i was still unused (of course, in a hack without "use strict"). This causes a segmentation fault. Being on this way, I

Re: sudden features

2000-02-09 Thread Joshua N Pritikin
On Wed, Feb 09, 2000 at 03:27:00PM +0100, [EMAIL PROTECTED] wrote: I recompiled with Insure++ and found this (fix attached): I patched watcher.c and reinstalled Event, but (here on Solaris) the script still dumps a core. However, I couldn't find anything else. Hm. Do you think a

Fwd: CPAN Upload: JPRIT/Event-0.68.tar.gz

2000-02-15 Thread Joshua N Pritikin
/JPRIT/Event-0.68.tar.gz size: 66194 bytes md5: cc5484a0759ac94ae0f83fecde182ba1 No action is required on your part Request entered by: JPRIT (Joshua N. Pritikin) Request entered on: Tue, 15 Feb 2000 20:58:33 GMT Request completed: Tue, 15 Feb 2000 20:59:57 GMT Virtually Yours

Fwd: CPAN Upload: JPRIT/Event-0.69.tar.gz

2000-02-18 Thread Joshua N Pritikin
/JPRIT/Event-0.69.tar.gz size: 66867 bytes md5: d3aa10f9141d4404b5570148f791be4e No action is required on your part Request entered by: JPRIT (Joshua N. Pritikin) Request entered on: Fri, 18 Feb 2000 20:38:08 GMT Request completed: Fri, 18 Feb 2000 20:38:09 GMT Virtually Yours

Re: repeat(0)/repeat(1) and stop()/start()

2000-02-21 Thread Joshua N Pritikin
On Mon, Feb 21, 2000 at 11:24:45AM +0100, [EMAIL PROTECTED] wrote: Just another point. The script above runs well on Solaris, but on Linux it behaves differently. If you enter something in STDIN on Linux while the script reports to be "INACTIVE", the screen is filled by a message that an

Re: Event and GUIs

2000-02-23 Thread Joshua N Pritikin
On Wed, Feb 23, 2000 at 10:28:06AM +0100, [EMAIL PROTECTED] wrote: I take a less generous stance. I think GUI toolkits or any other kind of librarty absolutely should allow a foreign event loop. Even if they base on an own event loop? Hm, well, Event is a library as well, and as I

Re: repeat(0)/repeat(1) and stop()/start()

2000-02-23 Thread Joshua N Pritikin
On Wed, Feb 23, 2000 at 03:02:04PM -0500, Joshua N Pritikin wrote: On Wed, Feb 23, 2000 at 10:27:50AM +0100, [EMAIL PROTECTED] wrote: I attach it. This output was produced with your script on Linux. Imagine the last line again and again (I truncated the file ;-) I enforced this result

Re: repeat(0)/repeat(1) and stop()/start()

2000-02-24 Thread Joshua N Pritikin
On Thu, Feb 24, 2000 at 10:13:23AM +0100, [EMAIL PROTECTED] wrote: Maybe you can get a C-level stack trace? I attach the debug session log. I forced program termination by a conditional dump() in a $SIG{__WARN__} hook. The calling condition was "Event.pm" in the message. I am able to

Re: repeat(0)/repeat(1) and stop()/start()

2000-02-24 Thread Joshua N Pritikin
On Thu, Feb 24, 2000 at 08:05:25AM -0500, Joshua N Pritikin wrote: On Thu, Feb 24, 2000 at 10:13:23AM +0100, [EMAIL PROTECTED] wrote: Maybe you can get a C-level stack trace? I attach the debug session log. I forced program termination by a conditional dump() in a $SIG{__WARN__} hook

Re: [ID 19991229.003] perl 5.005_03 core dumps -- signal

2000-01-19 Thread Joshua N Pritikin
On Sun, Jan 16, 2000 at 03:37:16PM +, [EMAIL PROTECTED] wrote: Joshua N Pritikin [EMAIL PROTECTED] writes: Furthermore, Event tries to ignore the implications of multiple threads as much as possible. Which is a weakness. Modern Tcl/Tk can at least "tolerate" multip

Fwd: CPAN Upload: JPRIT/NetServer-Portal-1.05.tar.gz

2000-03-10 Thread Joshua N Pritikin
(Joshua N. Pritikin) Request entered on: Fri, 10 Mar 2000 17:43:07 GMT Request completed: Fri, 10 Mar 2000 17:44:12 GMT Virtually Yours, Id: paused,v 1.68 1999/10/22 14:39:12 k Exp k -- "Never ascribe to malice that which can be explained by stupidity."

Fwd: CPAN Upload: JPRIT/NetServer-Portal-1.06.tar.gz

2000-03-10 Thread Joshua N Pritikin
N. Pritikin) Request entered on: Fri, 10 Mar 2000 23:15:25 GMT Request completed: Fri, 10 Mar 2000 23:15:40 GMT Virtually Yours, Id: paused,v 1.68 1999/10/22 14:39:12 k Exp k -- "May the best description of competition prevail." via, but not speaking for Deutsche Bank

Fwd: CPAN Upload: JPRIT/Event-0.72.tar.gz

2000-03-10 Thread Joshua N Pritikin
bytes md5: 497f3e26b8b0bb13fcede30ed3cd1cda No action is required on your part Request entered by: JPRIT (Joshua N. Pritikin) Request entered on: Fri, 10 Mar 2000 23:19:16 GMT Request completed: Fri, 10 Mar 2000 23:20:42 GMT Virtually Yours, Id: paused,v 1.68 1999/10/22 14:39

Re: Win32 port

2000-03-14 Thread Joshua N Pritikin
On Tue, Mar 14, 2000 at 02:09:39PM -0500, [EMAIL PROTECTED] wrote: i hate to say it too, but my event based project stem, will want event support on winblows as well. maybe in the medium future there might be money to do that. i have to get the unix one up and sold first. Just for the survey,

Re: select/poll replacement

2000-03-14 Thread Joshua N Pritikin
On Tue, Mar 14, 2000 at 08:52:02PM +0100, [EMAIL PROTECTED] wrote: Show me a man page. :-) I asked for this immediately (last week) and will send a copy/link as soon as I receive it. I already mentioned it because it seemed possible somebody else knows this too. I am familiar with the

Re: Making Event work for Win32

2000-03-21 Thread Joshua N Pritikin
On Tue, Mar 21, 2000 at 12:04:02PM +, [EMAIL PROTECTED] wrote: On Tue, Mar 21, 2000 at 11:51:38AM -, Paul Moore wrote: Actually, this approach looks a bit more complicated than that (but it also looks like the way it needs to go -- see below). I need to be able to wait on *any*

Re: Making Event work for Win32

2000-03-21 Thread Joshua N Pritikin
On Mon, Mar 20, 2000 at 10:33:51PM +, [EMAIL PROTECTED] wrote: Basically, it looks like the necessary changes could be pretty straightforward - the system-specific stuff is localised in c/unix_io.c Yes. (and a bit in c/signal.c - what's rsignal()?) Does Win32 support the unix notion of

Re: Event 0.72 blocks in test suite with perl 5.6

2000-03-24 Thread Joshua N Pritikin
On Fri, Mar 24, 2000 at 01:05:13PM +0100, [EMAIL PROTECTED] wrote: I just installed perl 5.6 and tried to reinstall Event 0.72. It hangs in the loop test. Here is what it says with activated traces: Ugh. Here is the correct output for 5.6.0. I'm not sure why it isn't working for you. I'm

Re: Event 0.72 blocks in test suite with perl 5.6

2000-03-24 Thread Joshua N Pritikin
I am able to reproduce it...investigating... -- "Never ascribe to malice that which can be explained by stupidity." via, but not speaking for Deutsche Bank

Re: Event 0.72 blocks in test suite with perl 5.6

2000-03-24 Thread Joshua N Pritikin
On Fri, Mar 24, 2000 at 10:24:14AM -0500, Joshua N Pritikin wrote: I am able to reproduce it...investigating... Fixed. See 0.73. -- "Never ascribe to malice that which can be explained by stupidity." via, but not speaking for Deutsche Bank Change 3135

Fwd: CPAN Upload: JPRIT/Event-0.73.tar.gz

2000-03-24 Thread Joshua N Pritikin
bytes md5: 7fa91101f379cdcdd5499c350e25597c No action is required on your part Request entered by: JPRIT (Joshua N. Pritikin) Request entered on: Fri, 24 Mar 2000 15:41:28 GMT Request completed: Fri, 24 Mar 2000 15:42:00 GMT Virtually Yours, Id: paused,v 1.68 1999/10/22 14:39

Re: Win32 port survey results

2000-03-27 Thread Joshua N Pritikin
On Mon, Mar 27, 2000 at 02:52:26PM +0100, [EMAIL PROTECTED] wrote: PS I have just noted a worrying point in the MsgWaitForMultipleObjects documentation. It seems that the maximum number of objects which can be waited on is about 32. This doesn't seem like a lot to me - is it likely to be an

Re: Win32 port survey results

2000-03-27 Thread Joshua N Pritikin
On Mon, Mar 27, 2000 at 03:52:38PM +0100, [EMAIL PROTECTED] wrote: \VisualStudio\VC98\Include\WINNT.H:#define MAXIMUM_WAIT_OBJECTS 64 // Maximum number of wait objects The book I first saw this in said 32 - 64 is better, but still a hard limit... From: Joshua What does Microsoft

Re: Detecting a closed connection

2000-04-10 Thread Joshua N Pritikin
On Mon, Apr 10, 2000 at 07:02:02PM +0200, [EMAIL PROTECTED] wrote: in a client/server system running on base of Event, I check for closed connections and remove all related data from the server process, inform other related clients and so on. This is done via an io read/error event watcher.

PerlQt integrated with Event

2000-04-12 Thread Joshua N Pritikin
The attached perl script shows how to fully integrate PerlQt with Event. -- "May the best description of competition prevail." via, but not speaking for Deutsche Bank perlqt.t

Re: Question about Watcher Attributes

2000-04-19 Thread Joshua N Pritikin
On Wed, Apr 19, 2000 at 08:36:21AM +0100, [EMAIL PROTECTED] wrote: Joshua N Pritikin [EMAIL PROTECTED] writes: Granted. Perhaps the thing to do is to document that data() should be reimplemented in every subclass to use a uniqueish key: Graham Barr came up with this for Tk: sub

semaphores

2000-04-19 Thread Joshua N Pritikin
I am studying Stevens' IPC book. Does anyone know the pros cons of SysV vs. POSIX semaphores? I see that POSIX semaphores are "newer" than SysV. My solaris 2.6 box supports both styles. Does linux express a preference? -- "May the best description of competition prevail." via,

Re: Question about Watcher Attributes

2000-04-19 Thread Joshua N Pritikin
On Wed, Apr 19, 2000 at 12:08:12PM -0400, [EMAIL PROTECTED] wrote: "JNP" == Joshua N Pritikin [EMAIL PROTECTED] writes: sub privateData { my $obj = shift; my $key = shift || caller; $obj-{$key} ||= {}; } i am not sure of why the need for private data per

Re: Question about Watcher Attributes

2000-04-19 Thread Joshua N Pritikin
On Wed, Apr 19, 2000 at 12:25:28PM -0400, [EMAIL PROTECTED] wrote: JNP Yes, that how it works either way. Hash assignment returns the new JNP value; the else branch would be redundent. but nik has a good point. i didn't think about the extra hash lookup. i just hate extra else clauses,

Re: semaphores

2000-04-19 Thread Joshua N Pritikin
On Wed, Apr 19, 2000 at 11:52:28PM +0100, [EMAIL PROTECTED] wrote: On Wed, Apr 19, 2000 at 03:51:09PM -0400, Joshua Pritikin wrote: On Wed, Apr 19, 2000 at 03:30:06PM -0400, Joshua N Pritikin wrote: Since no one replied, I think I'm going to try POSIX semaphores. They are "

Re: semaphores

2000-04-20 Thread Joshua N Pritikin
On Thu, Apr 20, 2000 at 06:54:00AM +0100, [EMAIL PROTECTED] wrote: Graham, I still have an old non-working pm file in the demo directory that implemented semaphores for Event. non-working ? what broke. Everything. I don't think it's been updated since Event 0.02. -- "Never ascribe to

Re: data() problems

2000-04-20 Thread Joshua N Pritikin
On Thu, Apr 20, 2000 at 02:22:25PM +0100, [EMAIL PROTECTED] wrote: On Thu, Apr 20, 2000 at 08:02:02AM -0400, Joshua Pritikin wrote: On Thu, Apr 20, 2000 at 11:39:07AM +0200, [EMAIL PROTECTED] wrote: Sure, except that it is not easy to determine the correct package from inside

Re: data() problems

2000-04-20 Thread Joshua N Pritikin
On Thu, Apr 20, 2000 at 06:52:29PM -0400, [EMAIL PROTECTED] wrote: JNP On Thu, Apr 20, 2000 at 02:22:25PM +0100, [EMAIL PROTECTED] wrote: In otherwords there should be two methods. One for the user, say data(), and one for sub-classes that want to ensure data integrity, say

Fwd: CPAN Upload: JPRIT/Event-0.75.tar.gz

2000-04-24 Thread Joshua N Pritikin
as file: $CPAN/authors/id/JPRIT/Event-0.75.tar.gz size: 148243 bytes md5: 36ffe7bc32b983ce512b877987d54158 No action is required on your part Request entered by: JPRIT (Joshua N. Pritikin) Request entered on: Mon, 24 Apr 2000 20:27:43 GMT Request completed: Mon, 24 Apr 2000 20:28:34 GMT

Fwd: CPAN Upload: JPRIT/Event-0.76.tar.gz

2000-04-26 Thread Joshua N Pritikin
as file: $CPAN/authors/id/JPRIT/Event-0.76.tar.gz size: 148425 bytes md5: d6c1cc491093882e8f8e7db05166328c No action is required on your part Request entered by: JPRIT (Joshua N. Pritikin) Request entered on: Wed, 26 Apr 2000 20:19:08 GMT Request completed: Wed, 26 Apr 2000 20:19:21 GMT

Re: IPC::BashEm

2000-05-02 Thread Joshua N Pritikin
On Tue, May 02, 2000 at 10:14:39AM -0400, [EMAIL PROTECTED] wrote: if you want both standard output and error redirected/collected in the calling program. or stdin + stderr :-). or if you want to deal with fds 2 (or, if for some twisted reason you want use stdout as an input, say).

Re: core dump

2000-05-09 Thread Joshua N Pritikin
On Tue, May 09, 2000 at 05:51:21PM -0400, [EMAIL PROTECTED] wrote: i am having a bitch of a time getting 5.6 working with event on my old solaris 2.6 box. first 5.6 and cpan don't like each other which is well known but this is my first experience with that combo. second, i just got event

Re: core dump

2000-05-10 Thread Joshua N Pritikin
On Tue, May 09, 2000 at 08:49:15PM -0400, [EMAIL PROTECTED] wrote: #0 0xef546b6c in _watcher_priority () (gdb) bt #0 0xef546b6c in _watcher_priority () #1 0xef54eda8 in XS_Event__idle_min () #2 0x73fa8 in Perl_pp_entersub () #3 0x6cfb8 in Perl_runops_standard () #4 0x240c4 in

Re: Which Perl event loop?

2000-05-10 Thread Joshua N Pritikin
On Wed, May 10, 2000 at 12:17:27PM +0100, [EMAIL PROTECTED] wrote: In the typical way of CPAN, I found not one answer but three! Event-0.01 Graham Barr Event-0.76 Joshua N. Pritikin EventServer-2.3 Jack Shirazi Can any of you please

Re: .74 is ok now

2000-05-11 Thread Joshua N Pritikin
On Thu, May 11, 2000 at 02:03:48AM -0400, [EMAIL PROTECTED] wrote: thanx for the patch which seems to work. Oh good. did you add the code for this warning or was it just crashing before this happened? Huh? There was a bug in the code to display the warning. Event: package '' doesn't

Fwd: CPAN Upload: JPRIT/Event-0.77.tar.gz

2000-05-12 Thread Joshua N Pritikin
/JPRIT/Event-0.77.tar.gz size: 148538 bytes md5: fbcc4a392dcd6e9ea0a9ed923b24bac3 No action is required on your part Request entered by: JPRIT (Joshua N. Pritikin) Request entered on: Fri, 12 May 2000 13:02:11 GMT Request completed: Fri, 12 May 2000 13:02:55 GMT Virtually Yours

Re: AIX 4.3.3 maintenance level 3 compile errors

2000-05-19 Thread Joshua N Pritikin
On Fri, May 19, 2000 at 10:21:18AM +1000, [EMAIL PROTECTED] wrote: I wasn't sure whether or not to send this specific info through [EMAIL PROTECTED] or straight to you. perl-loop is good. I've got a couple undefined symbols on my AIX box. This box has the latest maintenance. Can you

obscure SEGV [FIX]

2000-05-19 Thread Joshua N Pritikin
//depot/D/Event/ChangeLog#164 - /cache/D/Event/ChangeLog --- /tmp/tmp.5742.0 Fri May 19 10:42:52 2000 +++ /cache/D/Event/ChangeLogFri May 19 10:37:03 2000 @@ -1,3 +1,8 @@ +2000-05-19 Joshua Pritikin [EMAIL PROTECTED] + + * Fix SEGV triggered when Event-Stats is enabled

Re: Watching a modem

2000-05-23 Thread Joshua N Pritikin
On Tue, May 23, 2000 at 01:21:49PM +0100, [EMAIL PROTECTED] wrote: while (1) { print "RING Detected\n" if ($Port-modemlines $Port-MS_RING_ON); } All it does obviously is enter an infinate loop and print when it detects a ring. How can I use Event-var to watch for a

Re: linux bug in event??

2000-05-24 Thread Joshua N Pritikin
On Tue, May 23, 2000 at 06:55:41PM -0400, [EMAIL PROTECTED] wrote: Ignored 't' in poll mask at /usr/lib/perl5/site_perl/5.005/i386-linux/Event/Watcher.pm line 71. i am adding the 't' poll code as well as the timeout method. are you ignoring the 't' if the method is passed? not a biggie, i

Re: linux bug in event??

2000-05-24 Thread Joshua N Pritikin
On Wed, May 24, 2000 at 09:10:28AM -0400, [EMAIL PROTECTED] wrote: went away. but a real bug is you don't report where the call came from. the warning reports the line in Watcher.pm and it should be reporting the line in my code. That's true. I put in some code to invoke Carp::carp upon

Fwd: CPAN Upload: J/JP/JPRIT/Event-0.78.tar.gz

2000-05-24 Thread Joshua N Pritikin
/id/J/JP/JPRIT/Event-0.78.tar.gz size: 148585 bytes md5: 6b314d588a11d57436ae74218509b6af No action is required on your part Request entered by: JPRIT (Joshua N. Pritikin) Request entered on: Wed, 24 May 2000 20:28:06 GMT Request completed: Wed, 24 May 2000 20:29:14 GMT Virtually

Re: [PATCH]: Event-0.78 for IRIX 6.5.x (take 2)

2000-07-06 Thread Joshua N Pritikin
On Thu, Jul 06, 2000 at 10:19:02AM +0200, [EMAIL PROTECTED] wrote: Although my previous patch works, it doesn't solve the real problem. I have tested a bit more and found out that you cannot set POLLHUP in the events field on IRIX. This will cause an immediate return by poll which causes the

TUX

2000-07-20 Thread Joshua N Pritikin
I'm reading the TUX article on slashdot.org: http://slashdot.org/article.pl?sid=00/07/20/1440204mode=thread It looks like the nonsensical select/poll architecture is blown wide open. -- Never ascribe to malice that which can be explained by stupidity. (via, but not

Re: Event on IRIX platform

2000-07-21 Thread Joshua N Pritikin
On Fri, Jul 21, 2000 at 09:45:56AM -0400, [EMAIL PROTECTED] wrote: That worked. Thanks! Should IRIX undef HAS_POLL by default?? How would this work? #ifdef IRIX # undef HAS_POLL #endif ? Joshua N Pritikin wrote: On Wed, Jul 19, 2000 at 11:45:29AM -0400, [EMAIL PROTECTED] wrote: How

Re: NetServer::ProcessTop?

2000-07-27 Thread Joshua N Pritikin
On Thu, Jul 27, 2000 at 01:00:33AM -0700, [EMAIL PROTECTED] wrote: Is there an updated NetServer::ProcessTop that works with the latest Event module? I have 1.02 of ProcessTop, and 0.78 of Event, both downloaded from CPAN yesterday, but even the ProcessTop demo doesn't load because of

Re: NetServer::ProcessTop?

2000-07-27 Thread Joshua N Pritikin
On Thu, Jul 27, 2000 at 10:18:32AM -0700, [EMAIL PROTECTED] wrote: Yes, I have Event::Stats-0.7. The errors I get running "perl top.pl" are: Use of uninitialized value at top.pl line 8. "QUEUED" is not exported by the Event::Watcher module at

Re: NetServer::ProcessTop?

2000-07-27 Thread Joshua N Pritikin
On Thu, Jul 27, 2000 at 12:04:54PM -0700, [EMAIL PROTECTED] wrote: PS: Maybe ProcessTop should be removed from CPAN? Yep! Done. -- Never ascribe to malice that which can be explained by stupidity. (via, but not speaking for Deutsche Bank)

Re: kqueue

2000-08-24 Thread Joshua N Pritikin
On Thu, Aug 24, 2000 at 05:34:58PM +0200, [EMAIL PROTECTED] wrote: On Wed, Aug 23, 2000 at 02:50:51PM -0400, Uri Guttman [EMAIL PROTECTED] wrote: solaris has true aynch file i/o. Just as linux: you clone/block/signal (i am not talking about pthreads). Its just implemented differently. And

Re: Event on IRIX platform

2000-08-29 Thread Joshua N Pritikin
On Tue, Aug 29, 2000 at 12:46:13PM -0700, [EMAIL PROTECTED] wrote: I did remember to check though before I left the company. The "__sgi" did *not* work. Rather, "sgi" did: #ifdef sgi .. .. Oh good. I'll put in the check. I was very glad to find Event. We already had a communications

linked lists

2000-08-30 Thread Joshua N Pritikin
Wow! I am reading about the Linux linked list implementation. In comparison to Linux, Event wastes an unnecessary pointer on every link. I'd better fix this! :-) -- May the best description of competition prevail. (via, but not speaking for Deutsche Bank)

Re: linked lists

2000-08-30 Thread Joshua N Pritikin
On Wed, Aug 30, 2000 at 02:50:20PM -0400, Joshua N Pritikin wrote: Wow! I am reading about the Linux linked list implementation. In comparison to Linux, Event wastes an unnecessary pointer on every link. I'd better fix this! :-) False alarm? Linux is able to make the assumption

Re: linked lists

2000-08-30 Thread Joshua N Pritikin
On Wed, Aug 30, 2000 at 03:03:44PM -0400, [EMAIL PROTECTED] wrote: do you mean insque and remque? No. Event has its own linked-list and so does Linux. See Event.h and include/linux/list.h. -- Never ascribe to malice that which can be explained by stupidity. (via, but

Re: Event examples || documentation

2000-10-16 Thread Joshua N Pritikin
On Mon, Oct 16, 2000 at 01:57:13PM -0500, [EMAIL PROTECTED] wrote: After searching the mailing list archives and scouring the net, I have not been able to find many examples, or comprehensive documentation outside of the tutorial. You did notice lib/Event.pod? Since my project will be TCP

Re: Event examples || documentation

2000-10-16 Thread Joshua N Pritikin
On Mon, Oct 16, 2000 at 03:28:42PM -0500, [EMAIL PROTECTED] wrote: I am spending most of my time deciphering the terminology and corresponding function calls. Here is my project: Create a server deamon that waits for a client to connect and submit configuration data to fire off a

Re: redmond event loop

2000-11-30 Thread Joshua N Pritikin
On Thu, Nov 30, 2000 at 05:26:06PM +, [EMAIL PROTECTED] wrote: Uri Guttman [EMAIL PROTECTED] writes: would it be better to work from event.pm or from perlio as a base? I have not looked at guts of Event.pm (i.e. Event.xs) in a while. It depends how much abstraction you want. There

Re: redmond event loop

2000-11-30 Thread Joshua N Pritikin
On Thu, Nov 30, 2000 at 02:57:46PM -0500, Joshua N Pritikin wrote: It depends how much abstraction you want. There is little overlap between the two. Event is mostly a programmer friendly wrapper around stdio/PerlIO. stdio/PerlIO are mostly C APIs. Also, i shouldn't neglect to mention

Re: NetServer::Portal dependencies

2000-12-04 Thread Joshua N Pritikin
On Mon, Dec 04, 2000 at 02:28:26PM +, [EMAIL PROTECTED] wrote: demo/top.pl appears to need:- Event::Stats Scalar::Util Is it worth adding them as (Makefile.PL) dependencies? Scalar::Util is already there. I'll add Event::Stats. Thanks. -- May the best description of

Re: Tutorial: adapted API parts

2000-12-05 Thread Joshua N Pritikin
On Mon, Dec 04, 2000 at 10:38:09PM +0100, [EMAIL PROTECTED] wrote: For what it's worth, we could make the APIs *appear* the same. That's what I meant - just simplifying the interface by making it more general. However, the programmer still needs to decide how the callback will be

Re: $Event::DIED isn't doing what I expected

2000-12-06 Thread Joshua N Pritikin
On Wed, Dec 06, 2000 at 06:21:25PM +, [EMAIL PROTECTED] wrote: man If you do not want to continue looping after an error, you can do something like this: $Event::DIED = sub { die Event::verbose_exception_handler(@_) }; /man I did that and I get this trap message Event: trapped

Event 0.80

2000-12-07 Thread Joshua N Pritikin
# This is a patch for Event-0.79 to update it to Event-0.80 # Except that this patch does not include Tutorial.pdf. YMMV # # To apply this patch: # STEP 1: Chdir to the source directory. # STEP 2: Run the 'applypatch' program with this patch file as input. # # If you do not have 'applypatch',

vacation

2000-12-12 Thread Joshua N Pritikin
i will be on vacation Dec 14 - Jan 8. -- May the best description of competition prevail. (via, but not speaking for Deutsche Bank)

Re: callback test fails

2001-01-30 Thread Joshua N Pritikin
On Mon, Jan 29, 2001 at 12:07:58PM -0500, [EMAIL PROTECTED] wrote: i haven't tried the patch you sent me but i should. Yes please. but others are noticing this bug and are having problems with doing installs using CPAN.pm. they are using the force option. i think the fix is trivial.

Re: callback test fails

2001-01-31 Thread Joshua N Pritikin
On Wed, Jan 31, 2001 at 12:26:14AM -0500, [EMAIL PROTECTED] wrote: JNP i think the fix is trivial. Please confirm. this fixes the test bug. Good. i'll upload 0.81 shortly. but i still notice a delay in dispatching idle events. maybe i am not thinking about them the right way. my need

test

2001-08-31 Thread Joshua N Pritikin
Am i on the list? -- Get self-realization at http://sahajayoga.org ... http://why-compete.org ? Victory to the Divine Mother!!

Re: FAIL Event-0.83 IP27-irix 6.4

2002-01-21 Thread Joshua N Pritikin
'/tmp/mp5643.d/old/Event-0.83/ChangeLog' 'Event/ChangeLog' Index: ./ChangeLog *** ./ChangeLog Fri Jun 22 11:46:44 2001 --- ./ChangeLog Tue Jan 22 11:42:51 2002 *** *** 1,3 --- 1,8 + Tue Jan 22 11:42:16 2002 Joshua N Pritikin [EMAIL PROTECTED] + + * Remove IRIX special

Re: StarvePrio

2002-01-21 Thread Joshua N Pritikin
On Tue, Jan 22, 2002 at 01:54:50AM -0500, Allen Smith wrote: On Jan 22, 1:51am, Joshua N Pritikin wrote: Uh, OK. How's this patch? Well, once I managed to decipher the attachment (unknown-8bit is not a helpful character set...), Hrm .. mutt's fault? OK, except that I thought

Re: StarvePrio

2002-01-26 Thread Joshua N Pritikin
On Sat, Jan 26, 2002 at 03:42:22PM -0500, Allen Smith wrote: On Jan 22, 2:11am, Joshua N Pritikin wrote: On Tue, Jan 22, 2002 at 01:54:50AM -0500, Allen Smith wrote: OK, except that I thought that async prio was -1, not 5? i'm talking about async watchers not async priority

Re: timeout for one_event: clarification/RFE?

2002-01-27 Thread Joshua N Pritikin
On Sun, Jan 27, 2002 at 06:55:12PM -0500, Allen Smith wrote: In regard to one_event's optional timeout parameter, I am wondering whether, in the case of having both events with their own timeouts (whether timer events or i/o events with timeouts or whatever) _and_ i/o events: A. the

Re: timeout for one_event: clarification/RFE?

2002-01-31 Thread Joshua N Pritikin
On Sun, Jan 27, 2002 at 09:43:20PM -0500, Allen Smith wrote: In other words, if one has one_event(0), will this mean that any poll/select call will have a timeout of 0, Yes. or is this only the case if there are no timeouts from another source (such as a timeout watcher or i/o watcher)?

Re: Event and CPU usage while idle

2002-02-08 Thread Joshua N Pritikin
On Fri, Feb 08, 2002 at 03:37:17PM -0500, Colin Murtaugh wrote: I'm trying to use Event.pm to do some pretty basic event handling (watching for incoming data on a named pipe, and eventually some timers) but I keep having trouble with CPU usage. Seems that once the loop starts, my script uses

Re: Event and CPU usage while idle

2002-02-09 Thread Joshua N Pritikin
On Sat, Feb 09, 2002 at 09:22:57AM -0500, Colin Murtaugh wrote: I can try that. I know that if I just open a file and do a while (FILE) loop to read it, it blocks when there's no input. That's fine as long as that file is the only source of events, but I want to have others as well. Yah.

Re: Update to memory growth problems with Event.pm

2002-05-20 Thread Joshua N Pritikin
On Tue, May 14, 2002 at 10:04:51AM +0100, Nick Ing-Simmons wrote: In Event.xs, I change _loop() to: PROTOTYPE: ;$ CODE: double maxtm = 60; if (items == 1) maxtm = SvNV(ST(0)); What frees the maxtm SV ? Huh? maxtm is a double. ST(0) is on the stack. As far as i know,

Re: Event::io watcher w/ poll='w' on Solaris

2002-05-25 Thread Joshua N Pritikin
On Sat, May 25, 2002 at 07:06:53PM -0400, Allen Smith wrote: Since the Event::io module is very flexible in regards to what events can be waited for: Why not introduce another set of conditions, like urgent ('u') or out-of-band ('o') to still provide the functionality for those few, who

Re: Test script with Event-0.86 + BSD::Resource-1.15 coredumps on some IRIX machines

2002-05-27 Thread Joshua N Pritikin
On Mon, May 27, 2002 at 02:33:01AM -0400, Allen Smith wrote: I'm holding my head over this one. A combination of Event-0.86 and BSD::Resource 1.15 coredumps with the following test.pl script: [..snip..] The change that I'm guessing is responsible (although I really don't know how) is:

Re: Event and IO::Socket

2002-08-02 Thread Joshua N Pritikin
On Fri, Aug 02, 2002 at 10:20:37AM -0400, Jeff Boes wrote: Are there any tricks to getting Event to trigger when a socket receives input? I'm doing something equivalent to: $sock_in = IO::Socket::INET-new( LocalPort = $cfg-socket_nbr,

Re: Controlling (and skipping) 'stacked' events

2002-08-21 Thread Joshua N Pritikin
On Mon, Aug 19, 2002 at 11:57:09AM -0400, Jeff Boes wrote: I remain confused about a technique that I'm sure is available in Event, but I can't puzzle it out. Say I have two events, both 'timer' type. One event is a 'heartbeat' report to another process, saying I'm still alive, and I

Re: Event module question

2002-10-30 Thread Joshua N Pritikin
On Mon, Oct 28, 2002 at 04:14:56PM -, Peter Galbavy wrote: Hope you have a minute to help. I am trying to use the Event module as the basis for a very simplistic scheduler to do multi-host pinging etc. I would like to schedule a heap of events and then set one callback as the underlying

  1   2   >