Skip to content

Reading past end of JSON data in a stream #239

@ScottPJones

Description

@ScottPJones

While investigating an issue with my changes for better performance and to fix numeric parsing issues, I realized that parsing a number can "eat" the next character in a stream.
The way that the async.jl unit test works, by writing out a stream of JSON values, and then reading them on another process, breaks if there is not another character to separate the values, and just a number is being read.
I attempted to fix this using Base.peek, however on v0.6.2, it doesn't work for the type TCPStream.
I'm not sure what the behavior of a similar test in JavaScript or Python would be.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions