L
L
lsla2016-03-05 15:29:41
PHP
lsla, 2016-03-05 15:29:41

Why does the site freeze during a long cUrl request? Is Nginx+Apache+PHP on the server?

The site uses cUrl, and the response of the remote server is quite long, but unfortunately this cannot be fixed. There is a bunch of Nginx + Apache + PHP on the virtual server, I don’t want to change it, since it copes with 95% of tasks. And the problem is this: while cUrl is working, the entire site hangs (sites with other domains at this moment come off on this server). Maybe the problem is in the Nginx settings? If necessary, I can post the Nginx config. I set up a bunch according to the instructions, since there is little experience. Ajax is NOT a solution, because it will also hang the site.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Dimonchik, 2016-03-05
@dimonchik2013

ruhighload.com/post/%D0%90%D1%81%D0%B8%D0%BD%D1%85...

S
sim3x, 2016-04-01
@sim3x

Remove Apache
Untie curl from view

T
teet, 2017-01-22
@teet

The site uses cUrl, and the response of the remote server is quite long, but unfortunately this cannot be fixed

what exactly does this curl do?
I agree with dimonchik2013 , you need to use queuing systems

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question