I think I found the source of my problems with ECONNRESET.
The problem occurs with get because the Content-Length header could assume very large values as I discovery wit wireshark
The problem is related with how you decide the Content-Lengh value based on the value of options.data, so it seems to me the best approach should be to delete this buffer when the method is a GET.
I think I found the source of my problems with ECONNRESET. The problem occurs with get because the Content-Length header could assume very large values as I discovery wit wireshark
The problem is related with how you decide the Content-Lengh value based on the value of options.data, so it seems to me the best approach should be to delete this buffer when the method is a GET.