Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ParseError when client closes connection #36

Open
sethfowler opened this issue Mar 4, 2013 · 2 comments
Open

ParseError when client closes connection #36

sethfowler opened this issue Mar 4, 2013 · 2 comments

Comments

@sethfowler
Copy link

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.

@sethfowler
Copy link
Author

Actually I built msgpack 0.7.2.5 locally, manually changing the required version of byte string, and it made no difference. AFAICT, this bug still isn't fixed in msgpack 0.7.2.5.

@sethfowler sethfowler reopened this Mar 4, 2013
@phylake
Copy link

phylake commented Feb 10, 2014

Bump. I'd like to see a fix for this as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants