title: curl: (56) Recv failure: Connection reset by peer on flask_restful on AWS
body: <pre><code>*   Trying x.x.x.x...
  * TCP_NODELAY set
  * Connected to x.x.x.x (x.x.x.x) port 443 (#0)
  &gt; GET /sents HTTP/1.1
  &gt; Host: x.x.x.x:443
  &gt; User-Agent: curl/7.51.0
  &gt; Accept: */*
  &gt; 
  * Recv failure: Connection reset by peer
  * Curl_http_done: called premature == 1
  * Closing connection 0
  curl: (56) Recv failure: Connection reset by peer
  </code></pre>
  
  <p>^^ Port 80 works fine, 443 and any other port fails. I've tried using flask_sslify on the app, but it fails anyways (the redirect comes out for port 80 though)</p>
  
  <p>ufw status shows 443 as open / lsof shows the app as listening</p>
  
  <p>Not sure if it's a AWS-specific problem, everything works fine on my local machine.</p>
  
  <p>Any help would be greatly appreciated.</p>