Y
Hacker News
new
|
ask
|
show
|
jobs
by
zamalek
1483 days ago
It's possible by blocking the thread that's reading the XML, but now you're in thread-per-client territory, and that doesn't scale.
1 comments
Flowdalic
1483 days ago
Smack uses an XML pull parser
and
non-blocking I/O. It does so by splitting the XMPP stream top-level elements first and only feeding complete elements to the pull parser.
link
forty
1483 days ago
https://github.com/igniterealtime/Smack/blob/master/smack-xm...
I don't see any opportunity not to block when calling "next"
link