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

2022.3: socket.send on msg_out_event_handler crashed #475

Open
viniarck opened this issue May 23, 2024 · 0 comments
Open

2022.3: socket.send on msg_out_event_handler crashed #475

viniarck opened this issue May 23, 2024 · 0 comments
Labels
2024.2 Kytos-ng 2024.2 bug Something isn't working

Comments

@viniarck
Copy link
Member

This has been caught in prod on May 22, 2024:

<Task finished name='Task-7' coro=<Controller.msg_out_event_handler() done, defined at /usr/local/lib/python3.9/dist-packages/kytos/core/controller.py:607> exception=DeprecationWarning("Using sendall() method on sockets returned from get_extra_info('socket') will be prohibited in asyncio 3.9. Please report your use case to bugs.python.org.")>,
kytos $> controller._tasks[4].get_stack()
Out[174]:
[<frame at 0x5432670, file '/usr/local/lib/python3.9/dist-packages/kytos/core/controller.py', line 640, code msg_out_event_handler>,
 <frame at 0x538cf70, file '/usr/local/lib/python3.9/dist-packages/kytos/core/connection.py', line 97, code send>,
 <frame at 0x7faf04e54040, file '/usr/lib/python3.9/asyncio/trsock.py', line 150, code sendall>,
 <frame at 0x7faf04e54cf0, file '/usr/lib/python3.9/asyncio/trsock.py', line 20, code _na>]

However this part has been refactored and this warning has been mitigated on recent PRs when python was upgraded to 11, following std lib docs. Nevertheless, I'll leave this issue open, let's try to exercise switches connection/disconnection more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2024.2 Kytos-ng 2024.2 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant