Hi,
My use case: I have a long HTTP request and I want to get an error when the connection fails instead of waiting indefinitely.
I tried to use keepAlive to help detecting whether the connection is up or not but it does not seem to be working.
Is there anything I'm missing?
Test repo: https://github.com/julien-f/socket-keepalive-tests/
Hi,
My use case: I have a long HTTP request and I want to get an error when the connection fails instead of waiting indefinitely.
I tried to use
keepAliveto help detecting whether the connection is up or not but it does not seem to be working.Is there anything I'm missing?
Test repo: https://github.com/julien-f/socket-keepalive-tests/