D&C Lug - Home Page
Devon & Cornwall Linux Users' Group

[ Date Index ][ Thread Index ]
[ <= Previous by date / thread ] [ Next by date / thread => ]

[LUG] Strange network / perl problem



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Moooo,

I've got a rather strange problem i've never seen before, and it's driving me 
crazy!

2 perl scripts.  One is the server, one is the client.

server script sits on a box and runs from inetd (eww - yes), when it gets a 
connection, it prints out traffic stuff and exits.

The client just conencts to the server every 1 minute, collects the stats and 
updates a rrd.

This all works fine, except for a few times every hour:

/shared/scripts/bandwidth/run_parts/bandwidth:
Invalid line from x.x.x.1:[ADDR]: Connection reset by peer

it just seems to kill the connection half way through, and i cant't for the 
life of me work out why.

it shouldn't be because fof the ammount of data being printed and buffer 
overruns, as the sockets are blocking.  Maybe it's inetd being freaky.

I also can't seem to reproduce it by running the script from command line.

The scripts are here:

Server - http://theo.me.uk/downloads/rrd_graph-server.txt
Client - http://theo.me.uk/downloads/rrd_graph-client.txt

if anyoen can see why the hell this is happening, it would be much 
appreciated, i've been pulling my hair out over it for a few days now, to no 
avail.

~ Theo

- -- 

Theo Zourzouvillys
http://zozo.org.uk/

Your goose is cooked.
(Your current chick is burned up too!)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9Ibpw448CrwpTn6YRAutAAKD7Fr3qJYLfKGgB2CPTHAzD3K+mxQCgjejg
Vj6aBE70qhKRrcpRgTFv6/o=
=syJk
-----END PGP SIGNATURE-----


--
The Mailing List for the Devon & Cornwall LUG
Mail majordomo@xxxxxxxxxxxx with "unsubscribe list" in the
message body to unsubscribe.


Lynx friendly