| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
@cjw296 sorry for the delayed response. Could you:
|
Sorry, something went wrong.
|
Given this software is so poor, I'm unlikely to bother with a wet-ink contributor agreement. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
I bumped into this trying to do:
>>> conn = client.connect(...) >>> result = conn.jobs.export('search ...', output_mode='csv') >>> result.readline() '"'The problem is the 1 byte peek followed by a one byte read here:
https://hg.python.org/cpython/file/v2.7.5/Modules/_io/iobase.c#l466
This results in an attempt to read 0 bytes from the HTTPResponse in result._response, which ends up hitting this code path:
https://hg.python.org/cpython/file/v2.7.5/Lib/httplib.py#l567
We ask for 0 bytes, and sure enough, we get 0 bytes, but httplib sees this as "no data left" and closes the connection.
I couldn't figure out how best to test this, or indeed, how to run the test suite in such a way that the existing tests on HEAD of master all passed before I started work. But, functional testing has shown this to work.