[issue15991] BaseHTTPServer with ThreadingMixIn serving wrong data sometimes

Mikhail Afanasyev report at bugs.python.org
Thu Sep 20 22:03:01 CEST 2012


New submission from Mikhail Afanasyev:

When using BaseHTTPServer with ThreadingMixIn, sometimes the wrong data is served. 

The attached script requests normal URL and URLs which are not found in multiple threads using wget (which only saves pages if it gets 200 OK status).
Every once in a while responses are incorrect.
 - sometimes normal URL gets a '404 not found' content with '200 OK' status.
 - sometimes, a '404 not found' page gets '200 OK' status code

The problems become much, much less frequent if ThreadingMixIn is removed.

Python 2.7.3 on ubuntu 12.04 x86_64.

----------
components: Library (Lib)
files: http_server_bug.py
messages: 170840
nosy: theamk
priority: normal
severity: normal
status: open
title: BaseHTTPServer with ThreadingMixIn serving wrong data sometimes
versions: Python 2.7
Added file: http://bugs.python.org/file27237/http_server_bug.py

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15991>
_______________________________________


More information about the Python-bugs-list mailing list