SwitchEV / iso15118

Implementation of the ISO 15118 Communication Protocol (-2, -20, -8)
Apache License 2.0
147 stars 82 forks source link

Some EVCC errors cause program to hang forever #379

Open clerouxgit opened 5 months ago

clerouxgit commented 5 months ago

In EVCC/comm_session_handler, while loop in function get_from_rcv_queue cause program to hang on most error cases.

This prevent the program to stop and to be restarted by unpluging/repluging the cable.

It would be nice to add breaks after an exception is raised. Additionnaly, functions called in the while loop should raise an exception instead of just doing a return in case of blocking errors.

This EVCC hang issue can be reproduced by (non exaustive) :