fcli
fcli copied to clipboard
FoD: Implement timeout for download commands
If data for any FoD download commands has not been processed (e.g. scans or reports) a HTTP 202 code is returned. Currently we are waiting forever for a successful HTTP 202 code:
while ( status==202 ) {
status = request
.asFile(file, StandardCopyOption.REPLACE_EXISTING)
.getStatus();
if ( status==202 ) { Thread.sleep(30000L); }
}
We should introduce a timeout for any commands which use this approach.