network.request ECONNRESET (Connection reset by peer)

Hi guys !

I encountered an issue on my Android devices when executing a small request (sometimes)

The logs says : E/Corona  (27434): ERROR: recvfrom failed: ECONNRESET (Connection reset by peer)

In my case I don’t want a persistent connection.

  1. Do you know how to automatically establish a new connection if the connection status is reset by the remote server.

  2. What are the appropriate HTTP headers to send with the request AND which headers for the response for a non-persistent connection so it is closed after the response is received or an error is thrown. My server is Apache/PHP. What are the required settings for both Apache/PHP and for corona network request… ?

  3. Is there a function in the network module to reset the underlying socket.

Could you help me please.

Thank you.