Announcement

#1 2015-09-15 00:45:48

layanto
Member
2015-09-12
5

fetchRemote timeout under Windows

Hi,

Just recently using piwigo on Windows. Having trouble with the web upload very slow. Did some investigation and to do with fetchRemote function timing out. See http://piwigo.org/forum/viewtopic.php?id=25454

What is the purpose of fetchRemote in min\include\functions_upload.inc.php? I have commented out the call to fetchRemote and everything appears to work (photos uploaded and thumbnails generated). Is it to do with generating cache?

I suspect the problem is due to single PHP thread on Windows and fetchRemote uses curl to itself which will timeout as no new PHP thread available to handle the curl request. Not sure if the norm with Windows or just my setup (nginx and PHP cgi).


Piwigo version: 2.7.4
PHP version: 5.6.12
MySQL version: 5.6.26

Offline

 

#2 2015-09-15 15:08:04

flop25
Piwigo Team
2006-07-06
7037

Re: fetchRemote timeout under Windows

Hello
that's your setup
some of the devs like me use windows without a problem


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#3 2015-09-15 23:54:29

layanto
Member
2015-09-12
5

Re: fetchRemote timeout under Windows

Thanks for the response. I will have another look at my PHP setup.

But can I ask, what is the purpose of fetchRemote function called at the end of each file upload? I have commented out that line and haven't noticed any missing functionalities.

Offline

 

#4 2015-09-16 09:36:44

flop25
Piwigo Team
2006-07-06
7037

Re: fetchRemote timeout under Windows

if curl fails or is an issue you can disable it
https://github.com/Piwigo/Piwigo/blob/c … .php#L2026
several methods are tried successively is case of issues


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact