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

  • Home
  • SEARCH
  • 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 8202593
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T07:14:24+00:00 2026-06-07T07:14:24+00:00

This is a test application: #!/usr/bin/env python from flask import Flask from time import

  • 0

This is a test application:

#!/usr/bin/env python

from flask import Flask
from time import sleep

application = Flask(__name__)
application.debug = True

@application.route('/a')
@application.route('/b')
@application.route('/c')
def a():
    sleep(10)
    return 'Hello world.'

if __name__ == '__main__':
    application.run()

This application is deployed on Apache:

WSGIDaemonProcess Test processes=2 threads=15 display-name=%{GROUP}
WSGIProcessGroup Test

if you

  • request /a at 00:00
  • request /b at 00:01
  • request /c at 00:02

, you will

  • receive response from /a at 00:10
  • receive response from /b at 00:11
  • receive response from /c at 00:12

But if you

  • request /a at 00:00
  • request /a at 00:01
  • request /a at 00:02

, you will

  • receive response from /a at 00:10
  • receive response from /a at 00:20
  • receive response from /a at 00:30

So I guess that every request for one URL is processed in one thread. Now I intend to develop a long-pulling server, I think I need to dispatch every request to a independent thread to avoid block subsequent requests. What should I do?

  • 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-06-07T07:14:26+00:00Added an answer on June 7, 2026 at 7:14 am

    This problem has been solved. My guess is incorrect, the truth is:
    In Chrome browser, if two requests composed of identical protocol, hostname, port and path, the later request will not send until the prior request close.
    The blocked thing was not server but browser.

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

Sidebar

Related Questions

The following python script works fine: #!/usr/bin/env python import httplib, urllib params = urllib.urlencode({'url':'xxx/xxx/0AAAUw7n6qPQ922.jpg',
Here is the working code in Python (using cURL): #!/usr/bin/python import pycurl c =
Work on this small test application to learn threading/locking. I have the following code,
do you test this url in your application that writted with cakephp ? www.yourCakephpApp.com/test
I am making a test fullscreen application using this guide . However, I am
I've got unit test with this code: Excel.Application objExcel = new Excel.Application(); Excel.Workbook objWorkbook
I created a simple application inspired by this example in order to test all
I have a Unit test project for my Application using DUnit framework. This project
I have an Application Object. In Global.asax file i use this: Application[obj] = test;
In this test Core Data project, I have a one to many relationship from

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.