projectbuendia / client

Android client app
Apache License 2.0
38 stars 23 forks source link

Connection not closed when garbage (or nothing) is received #487

Open zestyping opened 5 years ago

zestyping commented 5 years ago

This may be a client or client-server issue.

I tested the client by running nc -l instead of tomcat7. When I responded to the client request with an invalid HTTP response, it held the connection open indefinitely. If I did not respond at all, it held the connection open indefinitely and did not time out.

The client should close the connection when it doesn't get a valid response.