Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

SocketException: Connection reset #42

Copy link
Copy link
@tonysimpson-sonocent

Description

@tonysimpson-sonocent
Issue body actions

Hi, we're seeing a few "java.net.SocketException: Connection reset" exception in our logs coming from cloudconvert-java.

We think these are being caused because PoolingHttpClientConnectionManager is being used without a timeToLive and your API does not return a keep-alive or Connection: close headers so PoolingHttpClientConnectionManager will expect connection can stay open forever.

We will probably work around this for how by creating a new client every request.

I had a look at the cloudconvert-python client, it does not reuse connections.

Honestly I'm not sure what the best fix is. Giving PoolingHttpClientConnectionManager a timeToLive or returning a keep-alive header of something sensible like 1 hour would probably eliminate these errors for us. However in my experience in corporate networks environments overloaded or misconfigured routers will reset (RST) connections after only a few minutes.

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.