Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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
Comment #1
SqyD CreditAttribution: SqyD commentedHi 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.
Comment #2
SqyD CreditAttribution: SqyD commentedStill not sure how serious this issue is and how to reproduce/test/diagnose this... Please clarify.
Comment #3
SqyD CreditAttribution: SqyD commented