During the tests I see strange things. My android app is sending some data to the server, I set connect and read timeouts(for tests I did a very short timeout like 2-3 seconds) after an timeout reached (exception thrown) I’m closing connection(connection.disconnect()) But in Charles I see strange connection data:
After tests and investigation into the issue, I've found that Charles keeps alive the connection. Tested on local simple server which logs connection and as a result I saw that while there is no Charles connection has been closed after java's disconnect() and with Charles connection still alive until some timeout(think defined in Charles)