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

ERL-1325: Warning message when 'socket' sender is made to exit #4265

Closed
OTP-Maintainer opened this issue Aug 4, 2020 · 2 comments
Closed
Labels

Comments

@OTP-Maintainer
Copy link

Original reporter: essen
Affected version: OTP-23.0
Component: kernel
Migrated from: https://bugs.erlang.org/browse/ERL-1325


The following snippet:
{code:java}
Pid = spawn(fun() -> {ok, S} = socket:open(inet, dgram, udp), [socket:sendto(S, <<0:8000>>, #{family => inet, port => 12345, addr => {232,0,1,1}}) || _ <- lists:seq(1,10000)] end), timer:sleep(100), exit(Pid, shutdown).
{code}
Produces the following message:
{code:java}
=WARNING MSG==== 04-Aug-2020::13:42:45.551079 ===
esock_stop_handle_current {-1}: Failed sending abort (closed) message to current writer <0.98.0>
{code}
The snippet is sending data over a multicast IP address but this is mostly to make sure it goes through the router as the message is probably related to the sender exiting while waiting for the reply inside socket:sendto.

I suppose this is a debug printout, especially since I can't seem to find it in my Common Test logs, only on the console. But it would be great to not have that printed in this scenario.
@OTP-Maintainer
Copy link
Author

raimo said:

The intricate interactions between different parts of the NIF code have been reworked regarding socket stop, for the master branch.  I tried to reproduce this on master, but could not.

Can you reproduce this on master?

@OTP-Maintainer
Copy link
Author

essen said:

Problem doesn't occur anymore with current master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant