Skip to content

Conversation

@benfalk
Copy link
Contributor

@benfalk benfalk commented Jun 24, 2016

Prior to this change it is possible to send any two-pair tuple to
GenServer.reply/2 and it will happily reply with :ok. This
leads to some hard to track-down bugs if you pass it the wrong
data. With this small check developers may be able to get a bit
more of a heads up to what is going wrong sooner.

For more information on how I came accross this:
benfalk/data_pool@dcf81d1

Prior to this change it is possible to send any two-pair tuple to
`GenServer.reply/2` and it will happily reply with `:ok`.  This
leads to some hard to track-down bugs if you pass it the wrong
data.  With this small check developers may be able to get a bit
more of a heads up to what is going wrong sooner.

For more information on how I came accross this:
benfalk/data_pool@dcf81d1
@josevalim
Copy link
Member

@fishcakez it is all yours.

@fishcakez fishcakez merged commit c658040 into elixir-lang:master Jun 24, 2016
@fishcakez
Copy link
Member

Thank you ❤️

josevalim pushed a commit that referenced this pull request Jun 24, 2016
Prior to this change it is possible to send any two-pair tuple to
`GenServer.reply/2` and it will happily return `:ok`, catching any
errors.  This leads to some hard to track-down bugs if you pass
it the wrong term.

Signed-off-by: José Valim <jose.valim@plataformatec.com.br>
eksperimental added a commit to eksperimental-forks/elixir that referenced this pull request Jun 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants