I
I
Igor2020-07-26 20:10:12
PHP
Igor, 2020-07-26 20:10:12

Parallel HTTP requests docker, ngix, php-fpm?

Colleagues, welcome.
Maybe I'm wrong, but for some reason I'm not running parallel HTTP requests in my dev environment.

Nginx Dockerfile

FROM nginx:latest

COPY nginx.conf /etc/nginx/nginx.conf
COPY fastcgi.conf /etc/nginx/fastcgi.conf
COPY vhost.conf /etc/nginx/sites-enabled/vhost.conf

EXPOSE 80

CMD ["nginx", "-g", "daemon off;"]


How did I find out?

Created an infinite loop in the controller and re-executed the request.
More requests are not executed until php crashes the process.

I want to debug the Long polling method, but it's not working yet.

What could be the reason?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
X
xmoonlight, 2020-07-27
@xmoonlight

What could be the reason?
In a single-threaded architecture of the php script code. Look there: what exactly prevents parallel processing: the absence of a child thread creation in the code, the number of competing threads in the settings, file locking, exclusive access modes, etc.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question