getting data from form and sending over a socket listening at different port
- From:
- jamal sasha
- Date:
- 2013-02-12 @ 01:25
Hi,
I have a very simple view function
request = {}
@app.route("/)
def get_data():
data = request.form
for data_tuple in data:
if data_tuple!= 'raw_text':
requests[data_tuple] = data[data_tuple]
send_commands(requests,8000) <------------issue line
return render_template('request_submitted.html')
So send_commands is another socket code (this is the client side) listening
at localhost :8000 ( flask is running on localhost:5000)
But when I try to get the data from UI.. it just waits for the request to
completed..
when i kill the localhost:8000 server..then request is completed..
WHat am i missing
thanks