Skip to content

Adding support for other HTTP clients #137

@ajutzeler

Description

@ajutzeler

HttpsURLConnection is not very flexible (and even broken in my opinion) when it comes to the persistence of the connections.

On all JVM that I tested (openjdk 11-17, oracle 11-17) there is a timeout around 10 seconds, which to my knowledge is not configurable, that will terminate the connection if no subsequent query is sent regardless of OS' configuration.

I quickly and dirtily (dropped all features I did not need and did not update the test suite) modified ResCU to use OKHttp client instead of HttpsURLConnection and all my problems related to that issue disappeared.

Would that make sense to add to this project the support for a more capable HTTP client (not necessarily OKHttp)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions