sboag 01/06/24 12:46:40
Modified: java/src/org/apache/xml/dtm/ref CoroutineSAXParser.java
Log:
Comment out the co_yield in setDocumentLocator, since this can
cause a hang (since it doesn't do anything to construct the
document.
Also, set the frequency down to 5.
Revision Changes Path
1.5 +4 -2
xml-xalan/java/src/org/apache/xml/dtm/ref/CoroutineSAXParser.java
Index: CoroutineSAXParser.java
===================================================================
RCS file:
/home/cvs/xml-xalan/java/src/org/apache/xml/dtm/ref/CoroutineSAXParser.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- CoroutineSAXParser.java 2001/06/24 17:20:28 1.4
+++ CoroutineSAXParser.java 2001/06/24 19:46:40 1.5
@@ -116,7 +116,7 @@
private LexicalHandler clientLexicalHandler=null; // %REVIEW% support multiple?
private ErrorHandler clientErrorHandler=null; // %REVIEW% support multiple?
private int eventcounter;
- private int frequency=10;
+ private int frequency=5;
// Horrendous kluge to run filter to completion. See co_yield()'s
// internal comments for details. "Is this any way to run a railroad?"
@@ -346,7 +346,8 @@
{
if(--eventcounter<=0)
{
- co_yield(true);
+ // This can cause a hang. -sb
+ // co_yield(true);
eventcounter=frequency;
}
if(clientContentHandler!=null)
@@ -721,6 +722,7 @@
// Since I'm not sure what good it does to throw a shutdown
// exception here, I'm simply commenting it out for the time
// being.
+ System.err.println(">>> ARG IS NULL!!! <<<");
// throw shutdownException;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]