You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am in the process of moving my XMPP library implementation from libxml2 to XMLParser.
One of the feature I am missing currently is the ability to start the parser in a non blocking way, and be able to inject the data to the parser as they are received.
It is possible to implement that having a custom InputStream in between, to bridge what I receive from the network to the XMLParser. However, to implement it nicely with SwiftNIO non blocking approach, it would be better to let SwiftNIO receiver inject the data in the parser as they are received.
Without that feature, one thread would be blocked on the XMLParser.parse() call until the end of the XMPP session, which is not efficient.
Would such a feature be more widely interesting?
Would a patch / Pull Request implementing such a feature be considered for integration?
Thanks!
The text was updated successfully, but these errors were encountered:
Note: I don't work on Foundation myself, but the need for parity between the corelibs and Apple implementations is likely to make this take a lot more consideration than otherwise. (As in, the feature can't be added to corelibs Foundation unless it's also added to Apple OS Foundation, which is not open source.)
Thanks. That’s what I guess, that’s why I am asking for a bit of guidance on how I could best help.
I am not in hurry, but I think this change would make the framework better, as it will free a thread on the client and would make it possible to implement an XMPP server based on such a XML stream parsing lib.
Additional Detail from JIRA
md5: 6f396923a1fdc684da1df03d58fab156
Issue Description:
Hello,
I am in the process of moving my XMPP library implementation from libxml2 to XMLParser.
One of the feature I am missing currently is the ability to start the parser in a non blocking way, and be able to inject the data to the parser as they are received.
It is possible to implement that having a custom InputStream in between, to bridge what I receive from the network to the XMLParser. However, to implement it nicely with SwiftNIO non blocking approach, it would be better to let SwiftNIO receiver inject the data in the parser as they are received.
Without that feature, one thread would be blocked on the XMLParser.parse() call until the end of the XMPP session, which is not efficient.
Would such a feature be more widely interesting?
Would a patch / Pull Request implementing such a feature be considered for integration?
Thanks!
The text was updated successfully, but these errors were encountered: