Make client report connection issues to servers

This commit is contained in:
harlekin
2022-08-30 18:11:17 +00:00
committed by Sheepit Renderfarm
parent 36b506aa6f
commit 3d5d91a1e4
3 changed files with 13 additions and 1 deletions

View File

@@ -1090,12 +1090,16 @@ import okhttp3.HttpUrl;
// the client cannot recover from this error (it's server side config) so exit the retry loop
confirmJobReturnCode = Type.IMAGE_TOO_LARGE;
break retryLoop;
case SERVER_CONNECTION_FAILED:
confirmJobReturnCode = Type.NETWORK_ISSUE;
break;
case ERROR_BAD_RESPONSE:
// set the error and retry on next loop
confirmJobReturnCode = Type.ERROR_BAD_UPLOAD_RESPONSE;
break;
default:
// do nothing, try to do a request on the next loop
break;