title: How debug TCP connections nodejs?
body: <p>My app makes lots of http requests to another server(target server) and there is one of them that is not closing and is always on ESTABLISHED state causing many connections on the target server and eventually being blocked by csf because of many connections oppened.</p>
  
  <p>I know the port of this connection using:</p>
  
  <pre><code>netstat -tapc
  </code></pre>
  
  <p>Is there a way to get which port http.request is using? Or another way to debug this would be welcome.</p>