Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Iteratees that throw exceptions aren't handled properly #83

Closed
bos opened this Issue · 2 comments

2 participants

Bryan O'Sullivan Gregory Collins
Bryan O'Sullivan

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

Since github's issue tracker doesn't allow attachments, here's a repro: https://github.com/bos/underpants

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!

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.