Drupal Association members fund grants that make connections all over the world.
At present, when using the drupal_http_request() function, there is no way to set a custom timeout for the request, either on the time the socket waits to connect (currently 15 seconds for HTTP and 20 seconds for HTTPS) or the time it waits when writing data to the stream (not set at all). I suggest adding a $timeout argument which can be used to set a custom value for both simultaneously. This helps prevent Drupal from hanging for 30 seconds or so if a remote web service is unavailable.
Patch is against CVS HEAD.
FAILED: [[SimpleTest]]: [MySQL] Unable to apply patch drupal-http-request-timeout-D6-4.patch. See the log in the details link for more information. View
FAILED: [[SimpleTest]]: [MySQL] Unable to apply patch 156582-29-2.patch. View