u9n / dlms-cosem

A Python library for DLMS/COSEM
Other
80 stars 41 forks source link

Improve socket handling #20

Closed Krolken closed 3 years ago

Krolken commented 3 years ago

We do not send a shutdown in the BlockingTCPTransport on the socket before closing and we have reason to believe that this sometimes causes meters modem to hang thinking the socket is still open.

We should add a call to shutdown so we make it easier for modems to handle the disconnect.