Protocols.HTTP.Query.PseudoFile loses Query object
Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=6847
Reported by Martin Karlgren email@example.com
When a PseudoFile object is instantiated from a Protocols.HTTP.Query object, it doesn't keep a reference to its parent .Query object. The result is that if all other references to the .Query object are lost, the .Query.PseudoFile will fail since .Query closes the connection when destroyed.
Sample program showing the problem attached.
Proposed solution: keep a reference to the instantiating .Query object in .PseudoFile.