fcli icon indicating copy to clipboard operation
fcli copied to clipboard

FoD: Implement timeout for download commands

Open kadraman opened this issue 2 years ago • 0 comments

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.

kadraman avatar Jan 02 '24 16:01 kadraman