[vz-dev] [volkszaehler/vzlogger] d60752: Added automatic reopen of underlying device in cas...
GitHub
noreply at github.com
Sun Jan 6 14:31:53 CET 2019
Branch: refs/heads/master
Home: https://github.com/volkszaehler/vzlogger
Commit: d60752b537bbcc90e5e2d31cbed997fae172e395
https://github.com/volkszaehler/vzlogger/commit/d60752b537bbcc90e5e2d31cbed997fae172e395
Author: Matthias Behr <mbehr at mcbehr.de>
Date: 2019-01-06 (Sun, 06 Jan 2019)
Changed paths:
M gmock/CMakeLists.txt
M include/protocols/MeterSML.hpp
M src/protocols/MeterSML.cpp
Log Message:
-----------
Added automatic reopen of underlying device in case of libsml read 0. (#370)
* Added automatic reopen of underlying device in case of libsml read 0.
As a workaround for #362 added an automatic reopen if
sml_transport_read returns 0 bytes.
Issue: #362
* Fix GTEST_LIBS_DIR for gmock.
Don't really know why this has changed. Might be that
gmock changed it.
* Added reopen as well to read to prevent use of invalid fd.
If reopen fails the fd might be invalid and the next read call
does a write or pass an invalid fd to sml_transport_read.
Now reopen gets triggered again and if it fails a sleep of 1s
is done to prevent busy loopings.
**NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/
Functionality will be removed from GitHub.com on January 31st, 2019.
More information about the volkszaehler-dev
mailing list