Skip to content

Commit

Permalink
feat(Fossid-webapp): Increase the read timeout for listMatchedLines
Browse files Browse the repository at this point in the history
It has been noticed that this function can sometimes get stuck. To avoid
running into timeouts, this commit sets the read timeout of the list
matched lines operation to 5 minutes.

Signed-off-by: Nicolas Nobelis <[email protected]>
  • Loading branch information
nnobelis authored and sschuberth committed Dec 11, 2023
1 parent 25361dd commit 7e1f3a8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions clients/fossid-webapp/src/main/kotlin/FossIdRestService.kt
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ interface FossIdRestService {
suspend fun listSnippets(@Body body: PostRequestBody): PolymorphicResponseBody<Snippet>

@POST("api.php")
@Headers("$READ_TIMEOUT_HEADER:${5 * 60 * 1000}")
suspend fun listMatchedLines(@Body body: PostRequestBody): EntityResponseBody<MatchedLines>

@POST("api.php")
Expand Down

0 comments on commit 7e1f3a8

Please sign in to comment.