Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6057115
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:27:10+00:00 2026-05-23T08:27:10+00:00

I use php 5.2.11 + php-fpm + nginx on my server. If a user

  • 0

I use php 5.2.11 + php-fpm + nginx on my server.
If a user sends a time consuming request “A”, before getting response for “A” from the server, he sends more others normal requests.
It is weird that user can not get any response before response for “A” returned, it seems php-fpm queues the requests.
I checked tcp connection, the requests are sent from different socket, have same PHPSESSION. And on the server side, php-fpm also wrote the normal requests into slow log.

I can not figure out how to resolve it, any suggestions?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T08:27:10+00:00Added an answer on May 23, 2026 at 8:27 am

    It isn’t PHP-FPM fault. Since you’re saying they have the same session then that’s the culprit. Sessions in PHP have a per-session lock, so one user cannot load a page with a specific session ID while there are outstanding requests with the same session; the blocking happens when you call session_start(). This is to avoid having different requests editing the same session variables (that causes all sort of problems). When a request ends and writes its resulting session data to the store, the next can start.

    If you want to be able to read session variables and start a time consuming job, but don’t want to block other requests from happening, just use session_write_close() after reading the session data you need to continue. Be aware that after calling that you cannot modify session data (and maybe you cannot read it because $_SESSION is emptied, but cannot remember).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I use php to display a table of data drawn from my mysql database.
Is it possible to use PHP's SimpleXML functions to create an XML object from
I need to use PHP to connect to a URL via a proxy server.
I use PHP to get a list of folders, and then documents from Google
I am trying to use PHP to connect to a database from a website.
How can I use PHP to grab some html from a different (local) page?
My web server is running Ubuntu 10.04. I want to use PHP in conjunction
I use PHP and MySQL to manage the content on my server/site (I have
I want use php curl with oauth to get the JSON data from twitter
I am planning to use php in an embedded environment. Our current web server

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.