Thanks Al, but the problem seems to be that I can do a 'delete
$heap->{Client}' if I don't do any work but as soon as I do some work the
delete doesn't seem to work anymore.

I'm building a replacement for init
(http://www.netsys.com/cgi-bin/man2html?/usr/share/man/cat1m/init.1m) that
supports a cron and telnet interface for controlling a box/application.  The
good news is that it's pretty close.  I'll soon have a PoCo::Component::Cron
and it's not too bad.  It also has a web server built in for doing status
and http control.

The problem is when I kill a Wheel::Run and then try to delete the client it
no longer closes the client connection (although the Init process stops
taking IO from that session).

I'm thinking that there is an unanswered event or something that is hosing
up telnet server but haven't found it yet.

Any Wheel::Run folks experience this before.

Also (in solaris) I'm finding if I start a process that's a shell and kill
the shell, the process doesn't die.

example:

Init runs  start.sh

start.sh is:
#!/bin/ksh
runsomething
-----

so we have:

  Init
      start.sh
           runsomething

If I kill start.sh  (via a kill "HUP" pid) I get:

   Init
           
           runsomething   <-- now owned by init (pid 1).

If I kill the Init server then runsomething goes away..  very strange.

any clues on that?

many thanks and happy new year.
bobm



> -----Original Message-----
> From: "Al Tobey" <[EMAIL PROTECTED]>@INTERNET@HHC 
> Sent: Tuesday, December 31, 2002 6:52 AM
> To:   Bob Maccione
> Cc:   POE_list
> Subject:      Re: Dropping a connection in Component::Server::TCP?
> 
> >From perldoc POE::Component::Server::TCP ...
> 
>          # Accepted public events.
>          $kernel->yield( "shutdown" )           # initiate shutdown in a
> connection
>          $kernel->post( server => "shutdown" )  # stop listening for
> connections
> 
> So, post or yield a 'shutdown' event to achieve what you want.
> 
> -Al Tobey
> 
> On Mon, 2002-12-30 at 13:14, Bob Maccione wrote:
> > I've been trying to drop a connection in Component::Server::TCP and am
> not
> > sure the best way of doing it.
> >
> > The basic flow is that I parse a line (it's a telnet listener) and if
> the
> > line is 'quit' then I want to drop the connection.
> >
> > I can't just delete the heap and there doesn't seem to be a
> > Component::Server::TCP method call that will force a connection to drop.
> >
> > Any suggestions?
> >
> > thx,
> > bobm
> >
> 
> 
> 
> ********************************************************************
> This email and any files transmitted with it are confidential
> and intended solely for the use of the individual or entity
> to whom they are addressed.  If you have received this
> email in error please notify the Priority Health Information
> Services Department at (616) 942-0954.
> ********************************************************************
> 
> 

Reply via email to