Skip to content

how to set TCP and HTTP "keepalive" ? #697

@stargazer33

Description

@stargazer33

Sometime I get this

com.openai.errors.OpenAIIoException: Request failed; java.io.InterruptedIOException: timeout

com.openai.errors.OpenAIInvalidDataException: Error reading response; java.io.InterruptedIOException: timeout

for some long-running (about 3 minutes) calls.

I think this might be related to keepalive settings.

As far as I know, there are keepalive settings on TCP and on HTTP level.

How to configure all this correctly using Java 8 and openai-java ?

Documentation should mention this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions