 onTimeout = (req, res) ->
   res.status 408
   res.send {error: "Request timed out"}
+  @emit "response", req
   measure req, res
 
 measure = (req, res) ->

  drain: (fn) ->
    @_layer.drain fn
    return this

  ready: (callback) ->
    if @_server.listening

      return onFinish res

  .then ->

    # Prevent DoS attacks using large POST bodies.
    req.destroy() if req.reading

    if res.statusCode isnt 408
      app.emit "response", res
      measure req, res

  # Uncaught errors end up here.
  .fail (error) ->
