On Wed, Jul 14, 2004 at 07:12:48PM -0700, Matt Massie wrote: > guys- > > i have a 2.6.0 test that i'd like you to run on your respective > operating systems. > > download http://matt-massie.com/ganglia/ganglia-apr-2.6.0.tar.gz > > && ./configure && make > > i think i'm going to scrap the libunp code from steven's book. i think > steven's is the master but getaddrinfo() is broken on too many systems > that say they support it (and the network library is based on it). > > this is not a complete tarball at all. when i hear from everyone about > whether it works okay.. i'll move the rest of the gmond/gmetad etc code > into the distribution. > > if you cd into the ./gmond directory you'll see a gmond daemon. it > doesn't do much but i wrote it to act like a test. > > start gmond and then connect to it on port 8021. gmond will output the > address that it thinks you are coming from. to test IPv4/IPv6 sanity .. > try this > > % telnet localhost 8021 > > and then > > % telnet :: 8021 > > if your telnet client is IPv6 enabled. you should find that it > correctly understands where you are coming from. > > the code for this new framework is based on apr.apache.org .. the apache > runtime library... i've tested it on linux ia32/ia64 and cygwin and it > works as it should. a coworker is on the machine with my freebsd > virtual machine or i'd check it there too. > > martin... can you let me know what you get on your IPv6 box? i have my > laptop up and running some IPv6 interfaces. it looks pretty sane on > rh9. > > since apache runs on just about every machine out there... i think this > might be the most portable approach.
Partial success on FreeBSD 5-CURRENT, unless this is supposed to be a v6 only test. It's only binding to :: not 127.0.0.1. See below for my tests. Some thoughts on using apr. In general, I like the idea. The config.layout feature looks really nice! However, apr is big so it would be nice it we could have an option to use an external verion of apr, for instance when built in the FreeBSD ports collection. The tarball is also rather gigantic with apr. Perhaps two distrubtions would be in order, one with all the deps for lazy people/broken package systems, and one with just the core for people who already have the deps are can get them easily. -- Brooks [10:22am] [EMAIL PROTECTED] (~/working/ganglia/ganglia-2.6.0/gmond): sockstat| grep gmon brooks gmond 23960 3 tcp6 *:8021 *:* [10:22am] [EMAIL PROTECTED] (~/working/ganglia/ganglia-2.6.0/gmond): telnet localhost 8021 Trying ::1... Connected to localhost. Escape character is '^]'. Server socket: ::1:8021 -> ::1:49506 Connection closed by foreign host. [10:22am] [EMAIL PROTECTED] (~/working/ganglia/ganglia-2.6.0/gmond): telnet :: 8021 Trying ::... Connected to ::. Escape character is '^]'. Server socket: ::1:8021 -> ::1:49507 Connection closed by foreign host. [10:22am] [EMAIL PROTECTED] (~/working/ganglia/ganglia-2.6.0/gmond): telnet 0 8021 Trying 0.0.0.0... telnet: connect to address 0.0.0.0: Connection refused telnet: Unable to connect to remote host [10:23am] [EMAIL PROTECTED] (~/working/ganglia/ganglia-2.6.0/gmond): telnet 127.0.0.1 8021 Trying 127.0.0.1... telnet: connect to address 127.0.0.1: Connection refused telnet: Unable to connect to remote host [10:23am] [EMAIL PROTECTED] (~/working/ganglia/ganglia-2.6.0/gmond): grep localhost /etc/hosts ::1 localhost localhost.my.domain 127.0.0.1 localhost localhost.my.domain [10:23am] [EMAIL PROTECTED] (~/working/ganglia/ganglia-2.6.0/gmond): -- Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4
pgp86rFjpsukK.pgp
Description: PGP signature