Skip to content

ParseError when client closes connection #36

@sethfowler

Description

@sethfowler

I'm testing out msgpack-haskell, and my test application works fine - I can call a test method and see that the server receives the call correctly, and the client receives a return value successfully. However, there's a problem: every time a client disconnects from the server I get this printed to the console:

ParseError {errorContexts = ["demandInput"], errorMessage = "not enough bytes", errorPosition = 1:1}

This error seems to be coming from attoparsec. Maybe the parser isn't correctly handling the situation where the connection terminates and it gets EOF?

I'm using attoparsec 0.10.4.0, network-conduit 1.0.0, msgpack 0.7.1.5, and msgpack-rpc 0.9.0. I do see that msgpack 0.7.2.5 exists, but I can't install it as cabal warns it will break haskell platform due to updated dependencies. If this is fixed in msgpack 0.7.2.5, it'd be really great if a fix was back ported to something that will build on the current haskell platform.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions