I have a B4J HTTP server from which a client can download a file and after the file is download the client instructs the server to delete the file.
When the download of the file is interrupted: the client tries to download the file a second time and afterwards tries to deleted the file. However, this is not working as the file is still being locked by the first server thread ?
I added a try catch in the HTTP handler and made sure the stream is closed after the everything went well, or went something was wrong (so after the catch): now it is OK.