[issue15991] BaseHTTPServer with ThreadingMixIn serving wrong data sometimes

2012-10-08 Thread Mikhail Afanasyev

Mikhail Afanasyev added the comment:

The bug is not only wget-specific. It was discovered while making APT proxy, so 
at least Debian APT fetcher has the same problem.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15991
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15991] BaseHTTPServer with ThreadingMixIn serving wrong data sometimes

2012-09-20 Thread Mikhail Afanasyev

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 rep...@bugs.python.org
http://bugs.python.org/issue15991
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com