In the error case of the do...while loop which is in line 138 the $curl_purges are not closed. When running into this code a huge amount of memory is not freed.

I tried fixing this, but unfortunately I'm not a very experienced PHP programmer, so I didn't had success. However, on my site I'm running frequently into this issue, always stopping the processing of an import script where much data is updated/added.

Comments

SqyD’s picture

Hi Martin,

Thanks for you bug report. I'd like to find out if this is specific to your setup. Is the problem reproducible on other (development) setups?
Could you please provide some more details if available?
- PHP version
- LibCurl version (older versions of libcurl are known to have issues. Could you try to upgrade in you case?)
- Some idea what error libcurl encounters (timeout, 503, etc)
- Any other data you might have (logs, traces etc)

The 7.x-2.x branch I am working on should have more options besides curl. I'll inform you when it's functional so you could try if using the alternatives httprl and drupal_http_request solves the issuse.

SqyD’s picture

Priority: Critical » Normal
Status: Active » Postponed (maintainer needs more info)

Still not sure how serious this issue is and how to reproduce/test/diagnose this... Please clarify.

SqyD’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)