Fix: Avoid returning negative value that's stop watch socket
authorRomain Forlot <romain.forlot@iot.bzh>
Tue, 9 May 2017 14:48:49 +0000 (16:48 +0200)
committerRomain Forlot <romain.forlot@iot.bzh>
Wed, 10 May 2017 16:45:55 +0000 (18:45 +0200)
commita261e68d0dd32a03fdf42522e6d2c8259ba0f3d1
tree407534d0acada5fa68271e8b65973d4f048db7b2
parent863526d4ab28091148a0466769b443624911006b
Fix: Avoid returning negative value that's stop watch socket

Even if the frame read is wrong doesn't mean that socket is compromise only
that communication on CAN bus is difficult, maybe temporary. On en EPOLL err
code, or hangup, just close and restart the socket and reset the filter.

Change-Id: I61f146fd269bb2524f09e1f2ed89d93e83166136
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
CAN-binder/low-can-binding/binding/low-can-cb.cpp
CAN-binder/low-can-binding/can/can-signals.cpp
CAN-binder/low-can-binding/can/can-signals.hpp