Permalink
Browse files

Merge pull request #312 from macournoyer/finish-request-in-thread

Ensure the request is closed in the same thread as the app
  • Loading branch information...
macournoyer committed May 18, 2016
2 parents 50611c5 + b830ff5 commit 4dc72b3c2e10a7729d3fc5acf6788b207a17503f
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/thin/connection.rb
@@ -47,7 +47,7 @@ def receive_data(data)
def process
if threaded?
@request.threaded = true
EventMachine.defer(method(:pre_process), method(:post_process))
EventMachine.defer { post_process(pre_process) }
else
@request.threaded = false
post_process(pre_process)

0 comments on commit 4dc72b3

Please sign in to comment.