Skip to content

Conversation

@weisslj
Copy link
Contributor

@weisslj weisslj commented Mar 1, 2013

When using mysql_conn.erl directly, mysql_conn:start() completely empties
the message queue of the calling process. This is obviously very bad
when using it in a gen_server callback.

The patch mimics the behavior of start() and start_link() in proc_lib.

@weisslj
Copy link
Contributor Author

weisslj commented Jan 24, 2017

New commit 0f846ac, old commit 6456495 had wrong indentation as noted in #29.

@weisslj weisslj mentioned this pull request Jan 24, 2017
@weisslj weisslj changed the title Bugfix: Do not empty the message queue of the calling process. Bugfix: Do not empty the message queue of the calling process Jan 24, 2017
When using mysql_conn.erl directly, mysql_conn:start() completely empties
the message queue of the calling process. This is obviously very bad
when using it in a gen_server callback.

The patch mimics the behavior of start() and start_link() in proc_lib.
@dizzyd dizzyd merged commit 2f7e469 into dizzyd:master Jan 25, 2017
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

Successfully merging this pull request may close these issues.

2 participants