ReverseProxy: Fix a gun connection leak when there is an error with no
authorrinpatch <rinpatch@sdf.org>
Sun, 26 Jul 2020 16:18:21 +0000 (19:18 +0300)
committerrinpatch <rinpatch@sdf.org>
Sun, 26 Jul 2020 16:30:17 +0000 (19:30 +0300)
commitd4fbec62a37f229108a4ae5ef069042a8aa4aa22
tree44d257a48e6433f621c74da7953504725edaa92b
parentce9647aed786368536057492604e8ec99cd7aee2
ReverseProxy: Fix a gun connection leak when there is an error with no
body

- Modify `close/1` function to do the same thing it does for hackney,
which is - close the client rather than the whole connection
- Release the connection when there is no body to chunk
lib/pleroma/reverse_proxy/client/tesla.ex
lib/pleroma/reverse_proxy/reverse_proxy.ex