Skip to content

Commit

Permalink
Revert "Use gevent.sleep to make the program non-blocking"
Browse files Browse the repository at this point in the history
This reverts commit d96dd79.
  • Loading branch information
Kenneth Reitz committed Aug 20, 2012
1 parent 69ca392 commit 46e00b7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions httpbin/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import json
import os
import time
import gevent

import newrelic.agent

Expand Down Expand Up @@ -308,7 +307,7 @@ def delay_response(delay):
"""Returns a delayed response"""
delay = min(delay, 10)

gevent.sleep(delay)
time.sleep(delay)

return jsonify(get_dict(
'url', 'args', 'form', 'data', 'origin', 'headers', 'files'))
Expand Down

0 comments on commit 46e00b7

Please sign in to comment.