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

Sometimes got 'Unexpected end of stream' on android with OkHttp client #142

Open
Alex009 opened this issue Jun 22, 2021 · 0 comments
Open
Labels
bug Something isn't working

Comments

@Alex009
Copy link
Member

Alex009 commented Jun 22, 2021

sometimes we got "Unexpected end of stream" error on android.
we fix it by

fun provideHttpEngine(): HttpClientEngine? {
    return OkHttp.create {
        config {
            retryOnConnectionFailure(true)
        }
    }
}

it can be good for include into moko-network

@Alex009 Alex009 added the bug Something isn't working label Jun 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

1 participant