Skip to content

Handling GoAway error in xitca-client #1249

@basic-bgnr

Description

@basic-bgnr

Hi!. Thanks for this great project.
I am currently trying to replace reqwest in my pet-project with xitca-client.
I managed to get it working but there were several hiccups.

Problem:
I'm getting H2 GOAWAY error whenever the client is suspended more than 60 secs. I can't handle specific GOAWAY error because it isn't exposed as pub here (is this intended? Are we supposed to handle H2 error or it's the responsibility of xitca-client ?)

Minor problem:
I tried changing the keep_alive_idle time in ClientBuilder but it wouldn't work. The docs

/// Default to 10 minutes.
says default idle time is 10 min but its only 1 min
keep_alive_idle: Duration::from_secs(60),
. Maybe an extra zero is missing here.

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