
This issue trackerhas been migrated toGitHub, and is currentlyread-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.
Created on2017-02-25 21:20 byquentel, last changed2022-04-11 14:58 byadmin. This issue is nowclosed.
| Pull Requests | |||
|---|---|---|---|
| URL | Status | Linked | Edit |
| PR 298 | merged | python-dev,2017-02-25 21:25 | |
| Messages (7) | |||
|---|---|---|---|
| msg288581 -(view) | Author: Pierre Quentel (quentel)* | Date: 2017-02-25 21:20 | |
SimpleHTTPServer send a Last-Modified response header, but doesn't take into account the If-Modified-Since header if it was sent by the user agent. If a url matches a file and this file was not modified after the value of the If-Modified-Since header, the server should return HTTP status 304 (Not Modified). | |||
| msg291028 -(view) | Author: Serhiy Storchaka (serhiy.storchaka)*![]() | Date: 2017-04-02 10:26 | |
New changeset351adda54bed3afbbf6db7725699679e68722d7d by Serhiy Storchaka (Pierre Quentel) in branch 'master':bpo-29654 : Support If-Modified-Since HTTP header (browser cache) (#298)https://github.com/python/cpython/commit/351adda54bed3afbbf6db7725699679e68722d7d | |||
| msg291029 -(view) | Author: Serhiy Storchaka (serhiy.storchaka)*![]() | Date: 2017-04-02 10:27 | |
Thank you for your contribution Pierre. | |||
| msg299405 -(view) | Author: STINNER Victor (vstinner)*![]() | Date: 2017-07-28 16:19 | |
FYI there was a race condition, impacting Windows. I just fixed it:bpo-31066, commit28ce07ae9e34c70eea6b52515c7e00001cefd41e. | |||
| msg299472 -(view) | Author: Pierre Quentel (quentel)* | Date: 2017-07-29 14:43 | |
Thanks for telling me. I must have run the test hundreds of times now, on aWindows 7 PC, and this bug never occured.Just for my information, why do you add temp.flush() in the "with" block ?I thought the context manager took care of this.2017-07-28 18:19 GMT+02:00 STINNER Victor <report@bugs.python.org>:>> STINNER Victor added the comment:>> FYI there was a race condition, impacting Windows. I just fixed it:>bpo-31066, commit28ce07ae9e34c70eea6b52515c7e00001cefd41e.>> ----------> nosy: +haypo>> _______________________________________> Python tracker <report@bugs.python.org>> <http://bugs.python.org/issue29654>> _______________________________________> | |||
| msg299543 -(view) | Author: Serhiy Storchaka (serhiy.storchaka)*![]() | Date: 2017-07-31 08:56 | |
Thank you Victor!I suppose temp.flush() is a remnant of other (unsuccessful) attempt to fix a race condition. | |||
| msg299588 -(view) | Author: STINNER Victor (vstinner)*![]() | Date: 2017-07-31 22:35 | |
I suppose temp.flush() is a remnant of other (unsuccessful) attempt to fixa race condition.I didn't try only with .flush(). I prefer to explicitly .flush(), just incase :-) Using correctly a file system is complex because of all layers ofcaching. | |||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022-04-11 14:58:43 | admin | set | github: 73840 |
| 2017-07-31 22:35:58 | vstinner | set | messages: +msg299588 |
| 2017-07-31 08:56:26 | serhiy.storchaka | set | messages: +msg299543 |
| 2017-07-29 14:43:29 | quentel | set | messages: +msg299472 |
| 2017-07-28 16:19:47 | vstinner | set | nosy: +vstinner messages: +msg299405 |
| 2017-04-02 10:27:13 | serhiy.storchaka | set | status: open -> closed resolution: fixed messages: +msg291029 stage: resolved |
| 2017-04-02 10:26:14 | serhiy.storchaka | set | nosy: +serhiy.storchaka messages: +msg291028 |
| 2017-03-03 23:07:04 | v+python | set | nosy: +v+python |
| 2017-02-25 21:25:33 | python-dev | set | pull_requests: +pull_request264 |
| 2017-02-25 21:20:35 | quentel | create | |