SNIP >> Problem is, some of the urls don't exist. Setting >>the timeout low in User Agent from what I understand doesn't really apply >>until after a connection is made and data is being processed, so I can >>obviously wait quite a while to begin timing out for a non-existent url! >> > But the timeout does not apply to the DNS lookup (which is done via > gethostbyname). >
Could you not try an explicit gethostbyname on the URL before you pass it to the request. If you don't get a response then the is no need to look any further... Alternatively if gethostbyname gives long delays for no obvious reason how about using net::DNS::resolver instead? That one always seems fast to me assuming you send to a DNS that exists Francis -- Francis Turner, CIO Juelich Enzyme Products Gmbh http://www.juelich-enzyme.com/ +49-173-291-7278 In just two days, tomorrow will be yesterday.
