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

exception added for close TCP connection #121

Merged
merged 2 commits into from
Sep 1, 2022

Conversation

ikaratass
Copy link
Collaborator

After disconnection of cable between EV and EVSE physically, it could not stop the connection and threw an Exception. This causes us to not clear active sessions from comm_session list.
The exception below:
INFO 2022-08-31 10:36:53,251 - mqtt_api (219): No handler for 'meter_values' registered. Returning.
DEBUG 2022-08-31 10:36:55,609 - iso15118.secc.comm_session_handler (224): TCP client connected, client address is ('fe80::f27f:cff:fe0a:41a6', 49152, 0, 4).
DEBUG 2022-08-31 10:36:55,611 - iso15118.shared.comm_session (272): Trying to resume communication session
INFO 2022-08-31 10:36:55,615 - iso15118.shared.states (137): Entered state SupportedAppProtocol
INFO 2022-08-31 10:36:55,620 - iso15118.shared.states (141): Waiting for up to 20.0 s
ERROR 2022-08-31 10:36:55,628 - iso15118.shared.utils (51): [Errno 104] Connection reset by peer
Traceback (most recent call last):
File "iso15118/shared/utils.py", line 49, in wait_for_tasks
File "iso15118/shared/comm_session.py", line 438, in rcv_loop
File "asyncio/tasks.py", line 447, in wait_for
File "asyncio/streams.py", line 650, in read
File "iso15118/shared/utils.py", line 49, in wait_for_tasks
File "iso15118/shared/comm_session.py", line 438, in rcv_loop
File "asyncio/tasks.py", line 447, in wait_for
File "asyncio/streams.py", line 650, in read
File "iso15118/shared/utils.py", line 49, in wait_for_tasks
File "iso15118/shared/comm_session.py", line 485, in rcv_loop
File "iso15118/shared/comm_session.py", line 399, in stop
File "asyncio/streams.py", line 344, in wait_closed
File "asyncio/selector_events.py", line 856, in _read_ready__data_received
ConnectionResetError: [Errno 104] Connection reset by peer

@ikaratass ikaratass requested a review from tropxy September 1, 2022 11:09
@ikaratass ikaratass changed the title exception added for close connection exception added for close TCP connection Sep 1, 2022
@ikaratass ikaratass merged commit 4d92737 into master Sep 1, 2022
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