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

{:error, :ealready} #16

Open
hermanius opened this issue Sep 20, 2023 · 1 comment
Open

{:error, :ealready} #16

hermanius opened this issue Sep 20, 2023 · 1 comment

Comments

@hermanius
Copy link
Contributor

Hi,

I'm regularly (multiple times per day) getting an {error, ealready} error in efirebirdsql_op.get_response/1.
It crashes the process, and I get an error report in Sentry because of it.

The error is not handled as shown in:
get_response(Conn) ->
{ok, <OpCode:32>} = efirebirdsql_socket:recv(Conn, 4)

Is it possible to handle these kind of errors, and not let the process crash?
It would keep my Sentry logs a lot cleaner :-)

@nakagami
Copy link
Owner

tcp_gen:recv() returns {error, ealready} because tcp_gen:recv() is called by multiple processes.

I don't know what to do either, but if there is a way to improve it, someone please let me know ?

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

2 participants