2012/10/25 Damien Baty <dam...@damienbaty.com>:
> Hello,
>
> Le 21/10/2012 19:55, Lorenzo Gil Sanchez a écrit :
>>
>> I'm finding intermittent failures when running the waitress test
>> suite with Python 3.2.
>> [...]
>> The tests fail in this assertion: self.assertEqual(cl,
>> len(response_body)). The served file's size is smaller than the
>> Content-Length header in the response.
>>
>> Can anyone confirm this problem?
>
> I did reproduce the bug you mention. On each test run, at least one of
> the tests in "test_function.TestFileWrapper" failed (although it was not
> always the same ones).
>
> The problem is that the test reads from the socket before all data has
> been sent. It happens to me only on tests in TestFileWrapper, which
> sends a 48 Kb file. I guess that this is more prone to happen on
> low-end, busy machines. I opened a pull request with a simple fix
> (https://github.com/Pylons/waitress/pull/2). Perhaps you could try
> reproducing the bug with my branch and see if it fixes it for you too?


I have tested your fixes (in the master branch since Chris already
merged them) and it works perfectly!

Thanks a lot for fixing this tests' bug.

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-devel" group.
To post to this group, send email to pylons-devel@googlegroups.com.
To unsubscribe from this group, send email to 
pylons-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pylons-devel?hl=en.

Reply via email to