[issue21472] Fix wsgiref handling of absolute HTTP Request-URI

2014-09-16 Thread mouad
mouad added the comment: Hi Guido, If I understand this correctly, the HOST header was added only in HTTP1.1 and setting the absolute URI was the right behavior client should follow if they are behind a proxy for HTTP1.0, but the same behavior was kept in HTTP1.1 for backward compatibility

[issue21472] Fix wsgiref handling of absolute HTTP Request-URI

2014-05-11 Thread mouad
Changes by mouad : -- keywords: +patch Added file: http://bugs.python.org/file35214/issue21472.patch ___ Python tracker <http://bugs.python.org/issue21

[issue21472] Fix wsgiref handling of absolute HTTP Request-URI

2014-05-11 Thread mouad
New submission from mouad: Hi, As most of you know, working behind a HTTP proxy raise all this corner cases that no one think about until he has to, one of them i had to deal with some months ago is absolute request URI in HTTP request, that some client will send when they detect that they

[issue12038] assertEqual doesn't display newline differences quite well

2011-06-26 Thread mouad
mouad added the comment: I took on consideration the two suggestion that was in the issue and create this patch that basically show only until the last character that differ and truncate the rest. I just included one test case, other test case if they should be included (and if my solution

[issue12157] join method of multiprocessing Pool object hangs if iterable argument of pool.map is empty

2011-06-25 Thread mouad
mouad added the comment: Here is a new patch that in the opposite of the first one, it don't try to check if the pool.join() will hang or no, after a discussion with neologix in issue #12410 . -- ___ Python tracker <http://bugs.py

[issue12157] join method of multiprocessing Pool object hangs if iterable argument of pool.map is empty

2011-06-25 Thread mouad
Changes by mouad : Added file: http://bugs.python.org/file22475/issue-12157.patch ___ Python tracker <http://bugs.python.org/issue12157> ___ ___ Python-bugs-list mailin

[issue12410] Create a new helper function that enable to test that an operation don't hang more than a given timeout.

2011-06-25 Thread mouad
mouad added the comment: Thanks for the instructive feedback :) I totally agree i guess there is a lot of issues that i didn't think of :-(, my first thinking was to use "Pool.join" timeout argument but it was removed in 3.2 (by the way i didn't find the issue or the r

[issue12410] Create a new helper function that enable to test that an operation don't hang more than a given timeout.

2011-06-25 Thread mouad
Changes by mouad : Added file: http://bugs.python.org/file22469/operation_timeout.patch ___ Python tracker <http://bugs.python.org/issue12410> ___ ___ Python-bugs-list m

[issue12410] Create a new helper function that enable to test that an operation don't hang more than a given timeout.

2011-06-25 Thread mouad
Changes by mouad : Removed file: http://bugs.python.org/file22467/operation_timeout.patch ___ Python tracker <http://bugs.python.org/issue12410> ___ ___ Python-bugs-list m

[issue12157] join method of multiprocessing Pool object hangs if iterable argument of pool.map is empty

2011-06-25 Thread mouad
mouad added the comment: The test case use a helper function in test/support.py that i have proposed in issue #12410. I'm dropping this comment here because i don't have the rights to edit the issue dependency. cheers; -- ___ Pyth

[issue12410] Create a new helper function that enable to test that an operation don't hang more than a given timeout.

2011-06-25 Thread mouad
New submission from mouad : While working on issue #12157 [http://bugs.python.org/issue12157], I needed a function that make sure that an operation will not hang forever, for this reason i have create this helper function that support the context manager protocol and accept a timeout as an

[issue12157] join method of multiprocessing Pool object hangs if iterable argument of pool.map is empty

2011-06-25 Thread mouad
Changes by mouad : Added file: http://bugs.python.org/file22466/issue-12157.patch ___ Python tracker <http://bugs.python.org/issue12157> ___ ___ Python-bugs-list mailin

[issue12157] join method of multiprocessing Pool object hangs if iterable argument of pool.map is empty

2011-06-25 Thread mouad
Changes by mouad : Removed file: http://bugs.python.org/file22461/support.patch ___ Python tracker <http://bugs.python.org/issue12157> ___ ___ Python-bugs-list mailin

[issue12157] join method of multiprocessing Pool object hangs if iterable argument of pool.map is empty

2011-06-25 Thread mouad
Changes by mouad : Removed file: http://bugs.python.org/file22460/test_multiprocess.patch ___ Python tracker <http://bugs.python.org/issue12157> ___ ___ Python-bugs-list m

[issue12157] join method of multiprocessing Pool object hangs if iterable argument of pool.map is empty

2011-06-25 Thread mouad
Changes by mouad : Removed file: http://bugs.python.org/file22459/pool.patch ___ Python tracker <http://bugs.python.org/issue12157> ___ ___ Python-bugs-list mailin

[issue12157] join method of multiprocessing Pool object hangs if iterable argument of pool.map is empty

2011-06-25 Thread mouad
mouad added the comment: Hello, This is my first patch to cpython, hope it will be accepted :) The fix that i did is to remove the ResultMap instance from the pool cache when the iterable is empty. In general here is what happen: The "map" method create a MapResult instance, wh

[issue12157] join method of multiprocessing Pool object hangs if iterable argument of pool.map is empty

2011-06-25 Thread mouad
Changes by mouad : Added file: http://bugs.python.org/file22461/support.patch ___ Python tracker <http://bugs.python.org/issue12157> ___ ___ Python-bugs-list mailin

[issue12157] join method of multiprocessing Pool object hangs if iterable argument of pool.map is empty

2011-06-25 Thread mouad
Changes by mouad : Added file: http://bugs.python.org/file22460/test_multiprocess.patch ___ Python tracker <http://bugs.python.org/issue12157> ___ ___ Python-bugs-list m

[issue12157] join method of multiprocessing Pool object hangs if iterable argument of pool.map is empty

2011-06-25 Thread mouad
Changes by mouad : -- keywords: +patch Added file: http://bugs.python.org/file22459/pool.patch ___ Python tracker <http://bugs.python.org/issue12157> ___ ___ Pytho