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

Inbound messages halt after a few seconds on erts-10.3 #72

Closed
bfolkens opened this issue Mar 17, 2019 · 6 comments
Closed

Inbound messages halt after a few seconds on erts-10.3 #72

bfolkens opened this issue Mar 17, 2019 · 6 comments

Comments

@bfolkens
Copy link

bfolkens commented Mar 17, 2019

I began noticing a strange issue when connecting / receiving messages after upgrading to erts-10.3. Originally noticed the issue when changing a docker image base from elixir:1.8.0-alpine to elixir:1.8.1-alpine, and did some troubleshooting to isolate that it was the erts-10.3 upgrade from the 10.2 series. Neither the underlying os change (base, -slim, etc) seems to matter, and in fact, the same issue occurs on Mac OSX between the different erts versions. In other words, Elixir 1.8.1 works ok, so long as erts-10.2.x is involved, instead of erts-10.3.

All tested versions of websockex appear to be affected (0.2.x, 0.3.x, 0.4.x).

I've assembled a toy example here:
https://github.com/bfolkens/socketfail

I chose a relatively active public websocket channel (BitMEX), and constructed a very bare test case using mostly example code from the Websockex and Elixir docs. After an initial burst of activity, the responses stop when using the elixir-1.8.1 base image. However, when the base image is switched to elixir-1.8.0, the example continues to run indefinitely.

@bfolkens bfolkens changed the title Inbound messages halt after a few seconds on erts-10.3 (erts-10.2.x unaffected) Inbound messages halt after a few seconds on Elixir 1.8.1 / erts-10.3 Mar 17, 2019
@bfolkens bfolkens changed the title Inbound messages halt after a few seconds on Elixir 1.8.1 / erts-10.3 Inbound messages halt after a few seconds on erts-10.3 Mar 17, 2019
@wayann
Copy link

wayann commented Mar 18, 2019

I confirm the issue, I was having an hard time to understand why my code wasn't working... thank you. downgrading to Erts 10.2 fixes the issue on OS X

@Azolo
Copy link
Owner

Azolo commented Mar 18, 2019

Awesome, thanks for the report. I'll look into it.

@stocks29
Copy link

I can also confirm that downgrading to erts-10.2 (by installing opt 21.2) fixes this issue.

@dmorneau
Copy link

@dealloc
Copy link

dealloc commented May 4, 2020

Looks like this might be related to #84 since running my repro in a Docker container running 1.8.0 has no issues at all

@Azolo
Copy link
Owner

Azolo commented Mar 21, 2021

I think this is fixed.

@Azolo Azolo closed this as completed Mar 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants