On Sat, 3 Jun 2000, Greg Stein wrote: > I found the problem. Sneaky... > > sock.makefile() does a dup() on the file descriptor, then opens a FILE* > with that. See it coming yet? ... > > FILE* is a buffered thingy. stdio chunked in a block of data on the dup'd > file descriptor. When we went to grab another chunk on the *original* > descriptor, we missed input [that is now sitting in the FILE* buffer]. > > Answer: change the .makefile() in getreply() to: > > file = self.sock.makefile('rb', 0) > > This problem is going to affect the original httplib, too. IMO, we're > about to replace the sucker, so no worries... Oh... actually it won't affect the original since that doesn't pipeline requests. -- Greg Stein, http://www.lyra.org/
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4