Request returns 403, only sometimes

0

Good night, guys.

I have a (shared) server with some tables in the database. While my main application was running, I realized that some POST requests were returning 403.

To pull information from the database the application sends a post to a php that talks to MySQL and returns the result of the query. What happens, however, is that if I make too many sequential requests (one only happens when the other's result has already arrived), I eventually get 403.

As an example, I asked for 50 requests of type "SELECT * FROM turmas" , but the script eventually crashes. I am aware of the limit of active connections that shared servers have, so I made sure that these sequential requests were all executed in the main thread, but the problem persists.

What do you think is the problem? Any light?!

( link )

    
asked by anonymous 16.10.2018 / 01:29

0 answers