Message16930
Logged In: YES
user_id=1000470
The file pointer (fp) is None (inside urllib) from httplib. This appears to
be caused by a BadStatusLine exception in getreply() (line1016 httplib).
This sets self.file to self._conn.sock.makefile('rb', 0) then does a
self.close() which sets self.file to None.
Being new to this peice of code, I'm not sure whether it's urllib assuming
the file isn't going to be closed, or the BadStatusLine exception clearing
the file. Certainly it looks like the error -1 is not being trapped by
open_http() in urllib upon calling h.getreply() and assuming that the file
still exists even in an error condition?
It maybe a coincidence but it appears to occur more when a web browser
on the same machine is refreshing.
Regards
Rob
|
|
Date |
User |
Action |
Args |
2007-08-23 14:14:42 | admin | link | issue767111 messages |
2007-08-23 14:14:42 | admin | create | |
|