Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
These are all status code -1004
with a PHP message php_network_getaddresses: getaddrinfo failed: Unkown host
(translated):
http://www.sfcag.com
http://www.esrc.bris.ac.uk
http://www.klug-suchen.de
The PHP error message indicate this should be 11001 Host not found. I have ~40 of these wrong status codes.
Comment | File | Size | Author |
---|---|---|---|
#5 | httprl-1873942-4-add-host-not-found-errorcode.patch | 692 bytes | mikeytown2 |
#2 | httprl-1873942-2-add-host-not-found-errorcode.patch | 1.72 KB | mikeytown2 |
Comments
Comment #1
hass CreditAttribution: hass commentedAfter more thinking this was on my dev box before we ignored -1004, but we need to handle this. Otherwise last_checked is never set and we are checking this links with every cron run again and again. I missed this. It's like end endless loop, but endless check. Is -1004 a malfunction?
If this "host does not exists" situation cannot catched inside httprl - I may need to create a new linkchecker release. :-(
Comment #2
mikeytown2 CreditAttribution: mikeytown2 commentedhttp://www.klug-suchen.de gives me a -2 (max redirects exhausted)
With D6 & D7 drupal_http_request() I get:
So when you're using Drupal core you will still need to parse the error text.
The attached patch has been committed to 6.x & 7.x. Thanks for the bug report. Keep them coming :)
Note: Where -1004 came from #193073-11: drupal_http_request - socket not initialized
Comment #3
hass CreditAttribution: hass commentedBad news... The text is german on my system. :-(
Only
network_getaddresses: getaddrinfo failed:
is the same.Comment #4
hass CreditAttribution: hass commentedOne more example of inconsistencies http://stackoverflow.com/questions/8210099/php-php-network-getaddresses-...
Comment #5
mikeytown2 CreditAttribution: mikeytown2 commentedThanks :)
This patch has been committed.
Comment #6
hass CreditAttribution: hass commentedhttp://php.net/manual/en/function.fsockopen.php
Comment #7
hass CreditAttribution: hass commentedCross post...
Comment #8
mikeytown2 CreditAttribution: mikeytown2 commentedstream_socket_client is the function that is throwing the error. It's used in D7 as well. D6 does use fsockopen though.
Comment #9
mikeytown2 CreditAttribution: mikeytown2 commentedMoving this back to fixed.
Comment #10
hass CreditAttribution: hass commentedWell, but it may return the same warning, maybe just not documented? not tested... I'm not sure how reliable the new logic works...
How about calling dns_get_record() just to make it more reliable?
Comment #11
mikeytown2 CreditAttribution: mikeytown2 commentedThat function is only available on windows if PHP >= 5.3
Also noted is this issue #1325662: Usage and/or caching of gethostbyname
I'm not about to get into the business of implementing my own DNS client, even though that would give HTTPRL some big speed improvements when it comes to checking a lot of URLs.
I will be using "php_network_getaddresses: getaddrinfo failed:" for now. Like usual, I'm open to other patches, just not going to implement this my self.
Comment #12
hass CreditAttribution: hass commentedOk, should be fine for now.
Comment #13
hass CreditAttribution: hass commentedPatch works well for me.
Comment #14.0
(not verified) CreditAttribution: commentedg