Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: TCP/IP

by mikfire (Deacon)
on Apr 06, 2000 at 00:55 UTC ( [id://6972]=note: print w/replies, xml ) Need Help??


in reply to TCP/IP

I am beginning to see some... unanticipated behaviour from this. With the way your loop is set up, the forked server will not notice the pipe is broken until the file has changed.

For example,

server.pl 59683: server started on port 8870 at Wed Apr 5 16:28:55 20 +00 server.pl 59683: connection from localhost [ 127.0.0.1 ] at port 2110 +at Wed Apr 5 16:29:16 2000 server.pl 59683: begat 59693 at Wed Apr 5 16:29:16 2000
I broke that connection at 16:29:25. It is now 16:32:08 and I have not seeen the reap message. If cause the file I am monitoring to be updated ( approx 16:33:09 ), the reaping code is fired and I see:
broken pipe at server.pl line 50 main::SELFREAP('PIPE') called at server.pl line 82 main::__ANON__() called at server.pl line 113 main::spawn('CODE(0x804e054)') called at server.pl line 89 server.pl 59683: reaped 59693 with exit 65280 at Wed Apr 5 16:34:02 +2000
If I add this:
if ( eof(<STDIN> ) { confess "No more socket?"; $nodie = 0; last; }
after your call to seek, the spawned server dies when I would expect.

If I am still smoking crack, I will give up on this problem a apologize again for wasting everybody's time.

Mik
Mik Firestone ( perlus bigotus maximus )

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://6972]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (2)
As of 2024-04-20 04:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found