NOTE: The current preferred location for bug reports is the GitHub issue tracker.
Bug 19 - Auto-exhaust stream if the parser stops pulling
Auto-exhaust stream if the parser stops pulling
Status: NEW
Classification: Unclassified
Component: Utilities
All All
: P2 enhancement
Assigned To: Nobody
Depends on:
  Show dependency treegraph
Reported: 2008-02-22 16:36 CET by Henri Sivonen
Modified: 2009-11-23 17:16 CET (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Henri Sivonen 2008-02-22 16:36:14 CET
If a document references an external entity or a schema references and include file and retrieving the other HTTP resource takes for too long, the HTTP connection for the document/schema times out.

Instead of leaving the original socket hanging around without reading from it, the stream from the socket should somehow be exhausted anyway even if the parser wants to read something else first.

Solving this problem neatly is hard. Exhausting the streams sequentially would require changes to the parsers. Using worker threads to exhaust socket threads would add threads and thread synchronization which would probably be inefficient in the common case.