[JDEV] Re: Re: missing </stream:stream>
Robert Temple
robert.temple at dig.com
Thu Sep 21 13:19:56 CDT 2000
You have to attach an input source to a SAX parser. And in this case, that
input source is a socket using calls to recv. And when the SAX parser trys
to get more data but more data isn't there yet, it blocks on recv.
Therefore SAX parsing has to be in a separate thread. I could have it try
to insert arbitrary data into the stream before it blocks with a select
statement, but then I wouldn't be sure if the parser was in the middle of
some tag, potentially messing up the parser even more.
The _right_ thing to do would just be to have the server flush its output
before it shutdown socket. Server team: do you agree or disagree?
-Robert
-----Original Message-----
From: Chris [mailto:cjbehm at mail.com]
Sent: Thursday, September 21, 2000 5:16 AM
To: jdev at jabber.org
Subject: Re: [JDEV] Re: Re: missing </stream:stream>
on 09/20/2000 04:24 PM, Robert Temple at RWTEMPLE at go.com wrote:
> SAX parsers don't allow you to interrupt the parsing to
> insert some new text.
I'm not familiar with the SAX parsers. Well you're feeding it data from
somewhere right? Can't you just insert your data into the feed? Or does the
parser hook directly to the incoming socket?
Chris
_______________________________________________
jdev mailing list
jdev at jabber.org
http://mailman.jabber.org/listinfo/jdev
More information about the JDev
mailing list