B
B
BushaevDenis2019-04-01 06:06:55
PHP
BushaevDenis, 2019-04-01 06:06:55

How to make 2 parallel requests work at the same time in nginx?

The problem is the following. There is a large online store, which was decided to be transferred from hosting to a server.
Server configured: centos7+nginx+mariadb+php-fpm.
Everything is OK, except for 1 - if we open 2 pages at the same time, which take a long time to load, then until the first one loads, the second one (or any subsequent ones (or even from another device requested at the same time as the first request)) will not load.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
B
Boris Korobkov, 2019-04-01
@BorisKorobkov

Wangyu: this is not Nginx, but in PHP you open a session and work for a long time without closing it. Therefore, the second request waits until the current session is free (in fact, until the first request ends). You need to close the session immediately.

G
German Zvonchuk, 2019-04-11
@inside22

BushaevDenis in the previous comment says everything correctly. See your CMS and Framework.
It can be not only sessions, but also a connection to the database.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question