I'm doing a webserver type app where people can download stuff using their webbrowser.
The problem is that the app crashes, if the downloader closes their connection.
It crashes in the following line:
As the clientStream is suddenly closed.
Wrapping it in try catch does nothing.
The app simply crashes as it attempts to write to the invalid stream.
No info in debug mode. It just ends.
The problem is that the app crashes, if the downloader closes their connection.
It crashes in the following line:
clientStream.writeBytes(bytes , read)
As the clientStream is suddenly closed.
Wrapping it in try catch does nothing.
The app simply crashes as it attempts to write to the invalid stream.
No info in debug mode. It just ends.