Skip to content

Potential Freeze Due to Missing Request Timeout #148

@toshka

Description

@toshka

Hi,

I've noticed that the library can sometimes cause my Python process to freeze indefinitely. After some investigation, I suspect this may be due to the lack of a defined timeout when making HTTP requests via the requests module.

According to the Requests documentation, the default value of timeout is None, which means it can wait forever for a response. Currently, app-store-server-library-python does not specify a timeout when calling the API, which may lead to the process hanging indefinitely in the event of a network issue.

In my case, this happens a few times a week.

I'm happy to submit a merge request with a fix. It would be helpful if you could recommend appropriate values for connect and read timeouts.

Thanks!

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