Comment #1 on issue 224 by
alexan...@codjovi.fr: Database.view() and list()
After some investigation
The problem is inside http:ResponseBody::close
the test below leads to an infinite loop
while not self.resp.isclosed():
self.resp.read(CHUNK_SIZE)
the httplib documentations says:
def isclosed(self):
# NOTE: it is possible that we will not ever call self.close(). This
# case occurs when will_close is TRUE, length is None, and we
# read up to the last byte, but NOT past it.
#
# IMPLIES: if will_close is FALSE, then self.close() will ALWAYS be
# called, meaning self.isclosed() is meaningful.
return self.fp is None
AppEngine uses a custome version of httplib.
I dont know its behavior. But it returns True with the standard httplib and
False on app engine (and makes an infinite loop)