Skip to content
This repository was archived by the owner on Aug 27, 2022. It is now read-only.
This repository was archived by the owner on Aug 27, 2022. It is now read-only.

issue with stream parsing #10

@tuananh

Description

@tuananh

right now, it will throw error when at the end of chunk (highWaterMark).

this is a major issue because parsing the whole string is kind of defeating the purpose of this lib.

this issue wasn't tested is because the default highWaterMark is pretty high (64kb) IIRC vs size of strings in test cases

Error [ERR_UNHANDLED_ERROR]: Unhandled error. ({
  code: 'ERR_BAD_END_ELEMENT',
  offset: '\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
})

potential solution:

do sth like this https://github.com/silviucpp/erlxml/blob/master/c_src/xmlstreamparser.cc

once we find a complete stanza, we pass to SaxParser to parse

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcritical

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions