Answer the question
In order to leave comments, you need to log in
Why does apache block access to the host when curl is running?
Specifically, no one gives a normal answer, who says that in apache it is necessary to increase maxClients, someone has child processes, but it does not help. Why do I need it. For example, I have a parser with a web interface, parsing starts using an ajax connection, after which it loads the result of the parsing process with Ajax. But since curl works, apache closes access to the host for this ip until curl finishes
Answer the question
In order to leave comments, you need to log in
As an option: if your php sessions are stored in files and a session is opened in requests, then this may be the problem.
For example, one Apache process (the one using curl) opens a session, then parsing starts. The session is open, the file with it is locked. You send another request to your server, where the session is also opened, but it cannot be opened. the file is locked by another process, so that process will hang until the locking process finishes parsing the page and closes the session.
There is a simple solution - use queues (rabbitmq/zeromq) and hang up the execution of the grabber on cli (+ you can write a rule in the supervisor so that it raises the queue handler if it suddenly falls).
Check your browser settings, some don't want to open more than N simultaneous connections to the server. And you seem to have N = 1, I once suffered from such an opera. You launch a query in PMA and while it is running, it is impossible to work with PMA in other tabs. You can open the same PMA in another browser on the same computer.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question