Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[socket_closed_remotely] Reproduce httpc error #8841

Open
viplifes opened this issue Sep 20, 2024 · 1 comment
Open

[socket_closed_remotely] Reproduce httpc error #8841

viplifes opened this issue Sep 20, 2024 · 1 comment
Assignees
Labels
bug Issue is reported as a bug team:PS Assigned to OTP team PS

Comments

@viplifes
Copy link

Describe the bug
Erlang httpc client under high loads can sometimes work with an error socket_closed_remotely.
I made an example to reproduce this error in docker compose.
In example, you can switch httpc to hackney.
httpc will return frequent socket_closed_remotely, while hackney always works successfully.
The error is reproduced in different versions of Erlang 24/25/26/27

The error is somehow related to the number of parallel requests, the size of the request body and the size of the response body.

To Reproduce
https://github.com/viplifes/socket_closed_remotely
docker compose up --build

Expected behavior
No errors httpc

Affected versions
Erlang 24/25/26/27

Additional context
https://github.com/viplifes/socket_closed_remotely

@viplifes viplifes added the bug Issue is reported as a bug label Sep 20, 2024
@viplifes
Copy link
Author

Similar problem #7620

@IngelaAndin IngelaAndin added the team:PS Assigned to OTP team PS label Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue is reported as a bug team:PS Assigned to OTP team PS
Projects
None yet
Development

No branches or pull requests

3 participants