Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FoD: Implement timeout for download commands #494

Open
kadraman opened this issue Jan 2, 2024 · 0 comments
Open

FoD: Implement timeout for download commands #494

kadraman opened this issue Jan 2, 2024 · 0 comments
Assignees
Labels
effort:? enhancement New feature or request prio:?

Comments

@kadraman
Copy link
Collaborator

kadraman commented Jan 2, 2024

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 kadraman added the enhancement New feature or request label Jan 2, 2024
@kadraman kadraman self-assigned this Jan 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
effort:? enhancement New feature or request prio:?
Projects
None yet
Development

No branches or pull requests

2 participants