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 8257177
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T02:06:44+00:00 2026-06-08T02:06:44+00:00

It seems uwsgi remembers headers from a previous request in async mode! I deployed

  • 0

It seems uwsgi remembers headers from a previous request in async mode!

I deployed a very simple application with uwsgi:

def application(environ, start_response):
    start_response('200 OK', [('Content-Type', 'text/plain')])
    environ_repr = '\n'.join(sorted(key.ljust(30) + ' = ' + repr(value) for key, value in environ.items()))
    return [environ_repr]


and ran it with:

uwsgi --module index -s 0.0.0.0:8000 -p 1 --async 5


Steps to regenerate the problem:

  • Visit 127.0.0.1:8000 with header “Key: Value”, there is HTTP_KEY entry in environment, OK.
  • Now, visit 127.0.0.1:8000 without that header, but HTTP_KEY entry still is present environment, oopch!

Note: Same thing happens with other headers like Cookie!

(Tested with uwsgi 1.0, 1.2.4 and 1.3-dev, and python 2.7)

  • 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-08T02:06:46+00:00Added an answer on June 8, 2026 at 2:06 am

    There was a bug in uwsgi and fixed in:

    https://github.com/unbit/uwsgi/commit/e393f36f0adbdb49e4a84098865bb6e3c01785e4

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

Sidebar

Related Questions

Seems simple but users have no internet access. The application will be hosted internally
Seems,that very basic question. Anyway can't get the meaning of next definition from Spring
Seems like MySQL Bug; Request: SELECT * FROM table WHERE ( id LIKE '%тест
Seems like this might be easy, but from reading other SO answers there are
Seems like this should be simple enough but for whatever reason I am unable
Seems fairly straight forward and simple, I am doing the following and getting an
Seems like tooltips that you get from attribute title=test are not displayed inside the
Seems like this should be simple, but I don't find it in a net
seems simple enough, I want to take a generics list of integers and display
Seems archive file can be generated from object file: ar rvs libprofile.a profile.o What's

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.