So I have the same problem on localhost as mentioned in this issue: #1134232: Failed download .po.
Unable to download and save http://ftp.drupal.org/files/translations/7.x/drupal/drupal-7.0.ru.po file to /tmp/translation-i0213S.
But I'm sure it isn't permission problem. This error doesn't occur when I am downloading .ro files for contributed modules.
Drupal core .ro file cannot be loaded at once because it is too large.
Is there any way download this file by parts?

CommentFileSizeAuthor
#1 quickfix-1164564-1.patch714 bytesChi
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Chi’s picture

Status: Active » Needs review
FileSize
714 bytes

This patch seems to be working for me as well.

Gábor Hojtsy’s picture

Title: Failed download .po file » Increase .po file download timeout
Status: Needs review » Postponed (maintainer needs more info)

Well, I think the timeout should be applied to the waiting time before the file is actually downloaded, not to the download itself, right? Not sure how this helps you download the file. Maybe your internet connection just got better?

Chi’s picture

In my case drupal_http_request returns request timed out error message. Download the file by wget takes 70 seconds. I think the problem is related to the routing my provider and ftp.drupal.org.
Сan we add an extra parameter in l10n-update drush command?

Gábor Hojtsy’s picture

Status: Postponed (maintainer needs more info) » Needs review

Hm, ok, I guess this would be a good change after all. Anybody else with similar problems to verify / test?

Sutharsan’s picture

How does the request time out relate to PHP max execution time? Should it always be less or is PHP not counting execution time while waiting for HTTP response? Could we make the time a fixed x% of something? (I don't like unnecessary parameters/options)

Gábor Hojtsy’s picture

I think PHP only counts it own time in the timeout. It does not count in long running db queries either :)

Gábor Hojtsy’s picture

I think this looks like a safe thing to do. It will just take more time on hosts which do not have a connection to realize that fact. For sites with poor connections, it will be a bit more tolerant.

Sutharsan’s picture

Status: Needs review » Fixed

Committed. Thanks, and sorry for the delay.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.