I have a function:
...
socket.getOutputStream().write("something".getBytes());
socket.getOutputStream().flush();
...
Works fine. Keep socket open. Trying to call this function again but get the error: java.net.SocketException: Broken pipe
despite the fact that
socket.isClosed - false
socket.isOutputShutdown - false
socket.isConnected - true