Skip to content
This repository

Iteratees that throw exceptions aren't handled properly #83

bos opened this Issue July 17, 2011 · 2 comments

2 participants

Bryan O'Sullivan Gregory Collins
Bryan O'Sullivan
bos commented July 17, 2011

I've a simple web app that expects JSON POSTs, where if a client sends an invalid JSON document, the server hangs for 30 seconds before closing the connection without sending anything.

Bryan O'Sullivan
bos commented July 17, 2011

Since github's issue tracker doesn't allow attachments, here's a repro:

This example gets a sensible response (HTTP 400) from the server:

curl -v -d '}' -H 'Content-Type: application/json' http://localhost:8000/

This one should get a HTTP 400, but instead the server sends nothing, gets stuck and closes the connection after 30 seconds:

curl -v -d '{' -H 'Content-Type: application/json' http://localhost:8000/
Gregory Collins

This bug should be fixed as of 0.5.2, please re-open if not!

Gregory Collins gregorycollins closed this July 20, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.