Skip to content

Commit

Permalink
fix(gitlab-client): retry on connections reset by peer
Browse files Browse the repository at this point in the history
  • Loading branch information
filipowm committed Jan 31, 2022
1 parent 48f74bc commit 19d254c
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ class GitLabApiBuilder internal constructor() {
Exceptions.ServerErrorException::class.java,
CallNotPermittedException::class.java
)
.retryOnException { it.message?.lowercase()?.contains("reset by peer") ?: false }

fun url(url: String): GitLabApiBuilder {
this.url = url
Expand Down

0 comments on commit 19d254c

Please sign in to comment.