OK. This time patch included :) regards, -- Jacek Prucia 7bulls.com S.A. http://www.7bulls.com/
--- flood_round_robin.c.orig 2002-08-29 12:55:37.000000000 +0200 +++ flood_round_robin.c 2002-08-29 13:03:45.000000000 +0200 @@ -792,6 +792,20 @@ apr_file_printf (local_stderr, "Misformed URL '%s'\n", r->uri); exit (APR_EGENERAL); } + if (r->parsed_uri->hostname[0] == '\0') { + apr_file_printf (local_stderr, "Misformed URL '%s' -- can't find valid hostname.\n", r->uri); + exit (APR_EGENERAL); + } + // this schouldn't be hardcoded, but... :) + if (apr_strnatcmp (r->parsed_uri->scheme, "http") != APR_SUCCESS && apr_strnatcmp (r->parsed_uri->scheme, "https") != APR_SUCCESS) { + apr_file_printf (local_stderr, "Wrong URL scheme '%s' -- only 'http' and 'https' schemes are supported.\n", r->parsed_uri->scheme); + exit (APR_EGENERAL); + } + if (r->parsed_uri->user != NULL || r->parsed_uri->password != NULL) { + apr_file_printf (local_stderr, "Misformed URL -- auth data schould be outisde URL -- please see docs.\n"); + apr_file_printf (local_stderr, "Please note, that auth isn't working right now\n"); + exit (APR_EGENERAL); + } if (!r->parsed_uri->port) { r->parsed_uri->port =
<flood> <urllist> <name>Fake URLs</name> <description>A bunch of fake URLs for flood testing</description> <!-- borked scheme --> <url>htsjfdshfdhfdghdsdsfd</url> <!-- no hostname --> <url>http:///index.html?var=value</url> <!-- not supported scheme --> <url>ftp://ftp.some.site.com/</url> <!-- user data in URL --> <url>http://user:[EMAIL PROTECTED]/index.html?path</url> </urllist> <profile> <name>Example Profile</name> <description>A Test Round Robin Configuration</description> <useurllist>Test Hosts</useurllist> <profiletype>round_robin</profiletype> <socket>generic</socket> <report>relative_times</report> <verify_resp>verify_200</verify_resp> </profile> <farmer> <name>Joe</name> <count>5</count> <useprofile>Example Profile</useprofile> </farmer> <farm> <name>Bingo</name> <usefarmer>Joe</usefarmer> </farm> <seed>1</seed> </flood>