title: Flask Hangs on request
body: <p>Recently I'm developing a Flask website/api app to Windows Server and saw some weird issue going on. </p>
  
  <p>When someone make a request to a url, occasionally(like 3-4 out of 10 times) it will hang. All I need to do to make that request come through is going to the command line where I fire up the Flask server, and send an interrupt signal. (I'm on windows, so basically "Ctrl + C"). I've googled for a while, but I believe none of the solutions applies. Here's what I've tried:</p>
  
  <ul>
  <li>add <code>threaded=true</code> in <code>app.run()</code> as suggested <a href="https://stackoverflow.com/questions/22324872/flask-app-hangs-while-processing-the-request">here</a> didn't work.</li>
  <li>In <a href="http://librelist.com/browser/flask/2012/3/7/internet-explorer-hangs-when-connecting-to-flask-build-in-server/" rel="noreferrer">This link</a>, Author mentioned that some browser may fire up multiple requests at the same time and make the server confused. This probably doesn't apply here either since I've tried to make request from python's <code>requests</code> library and still see the server hangs. </li>
  <li>Use Gevent or Tornado to serve app as mentioned in <a href="http://flask.pocoo.org/docs/0.10/deploying/" rel="noreferrer">here</a> didn't work either.</li>
  <li>Tried both on python 3 and python 2.7, had same issue.</li>
  </ul>
  
  <p>I have pretty much same setup on my local machine(win7 64bit) and everything just works fine. (The server that has issue is Windows Server 2012)</p>
  
  <p>I'd love to share some code, but I highly doubt it would be code issue, since it works perfectly fine locally. </p>
  
  <p>Has anyone experienced the same thing before?</p>