I run my jar application as follows:
#!flask/bin/python from app import app_instance from gevent.pywsgi import WSGIServer
And then when I try to execute this code, the requests call the blocks until the initial request has expired. I mainly refer to the web service in the same flash application. What i don't understand about gevent? Will the stream be issued when an I / O event occurs?
@webapp.route("/register", methods=['GET', 'POST']) def register(): form = RegistrationForm(request.form, csrf_enabled=False) data = None if request.method == 'POST' and form.validate(): data= {'email': form.email, 'auth_token': form.password, 'name' : form.name, 'auth_provider' : 'APP'} r = requests.post('http://localhost:5000', params=data) print('status' + str(r.status_code)) print(r.json()) return render_template('register.html', form=form)
source share