<p dir="auto">When I run an HTTPS server, somehow a request will trigger a panic error.</p>
<p dir="auto">ConnectionReset: Connection reset by peer (os error 104)</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error: Uncaught ConnectionReset: Connection reset by peer (os error 104)
  at unwrapResponse (rt/10_dispatch_json.js:24:13)
  at sendAsync (rt/10_dispatch_json.js:75:12)
  at async TLSListener.accept (rt/40_tls.js:42:19)
  at async Server.acceptConnAndIterateHttpRequests (file:///server/dist.server.js:1714:32)
  at async MuxAsyncIterator.callIteratorNext (file:///server/dist.server.js:797:49)"><pre class="notranslate"><code class="notranslate">error: Uncaught ConnectionReset: Connection reset by peer (os error 104)
  at unwrapResponse (rt/10_dispatch_json.js:24:13)
  at sendAsync (rt/10_dispatch_json.js:75:12)
  at async TLSListener.accept (rt/40_tls.js:42:19)
  at async Server.acceptConnAndIterateHttpRequests (file:///server/dist.server.js:1714:32)
  at async MuxAsyncIterator.callIteratorNext (file:///server/dist.server.js:797:49)
</code></pre></div>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/499364/92377143-42d4ed00-f136-11ea-91a1-75d006393c16.png"><img width="595" alt="Screen Shot 2020-09-07 at 18 16 30" src="https://user-images.githubusercontent.com/499364/92377143-42d4ed00-f136-11ea-91a1-75d006393c16.png" style="max-width: 100%;"></a></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/499364/92377189-58e2ad80-f136-11ea-959b-449fbd880ba9.png"><img width="671" alt="Screen Shot 2020-09-07 at 18 17 07" src="https://user-images.githubusercontent.com/499364/92377189-58e2ad80-f136-11ea-959b-449fbd880ba9.png" style="max-width: 100%;"></a></p>
<p dir="auto">I have a problem running an <code class="notranslate">https</code> server and I can't solve it on my own. I tried various things which include:</p>
<ul dir="auto">
<li>switching linux distros</li>
<li>using different ssl certificates</li>
<li>changing server configurations</li>
<li>different domains</li>
<li>comparing to http server</li>
<li>and more</li>
</ul>
<p dir="auto">The problem is that after an indeterminable time, but mostly about 20 hours, the server stops working in the sense that requests just seem to timeout: <code class="notranslate">curl: (28) Failed to connect to xyz.com port 443: Connection timed out</code>. Before this time period, everything works prefectly. But the deno process is still running and the port is still used:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/54777088/97083011-ccb91680-160d-11eb-91cc-1f05ebdfa7d0.png"><img src="https://user-images.githubusercontent.com/54777088/97083011-ccb91680-160d-11eb-91cc-1f05ebdfa7d0.png" alt="deno_ps_ax-2020-10-24" style="max-width: 100%;"></a><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/54777088/97083016-d04c9d80-160d-11eb-96f7-3bb990d67959.png"><img src="https://user-images.githubusercontent.com/54777088/97083016-d04c9d80-160d-11eb-96f7-3bb990d67959.png" alt="deno_lsof-2020-10-24" style="max-width: 100%;"></a></p>
<p dir="auto">I don't use an nginx proxy server; just deno directly on a linux distro.<br>
I execute deno with <code class="notranslate">sudo</code> and I also tried to start deno with <a href="https://pm2.keymetrics.io/" rel="nofollow">pm2</a>. In all cases it stops working after a couple of hours.</p>
<p dir="auto">The server runs on AWS Lightsail and I can rule out that a huge amount of requests is causing this (maybe 10 requests per hour).</p>
<p dir="auto">I can also say with certainty that this does not happen with a deno <code class="notranslate">http</code> server nor with a node <code class="notranslate">https</code> server, which I both tested at least once for two days.</p>
<p dir="auto">There was no big CPU or memory load which I could see in the monitoring tools. I only respond with <code class="notranslate">hello world</code> to requests at the moment.<br>
If necessary I would be happy to give ssh access to somebody who knows how to debug this issue.</p>
<p dir="auto">Thanks a lot!</p>