]> git.ipfire.org Git - thirdparty/lldpd.git/commit
lib: fix notification by reading one byte at a time from Unix socket
authorVincent Bernat <bernat@luffy.cx>
Wed, 14 Aug 2013 17:17:23 +0000 (19:17 +0200)
committerVincent Bernat <bernat@luffy.cx>
Wed, 14 Aug 2013 17:17:23 +0000 (19:17 +0200)
commitbdc954b77ada430ca4897c4adc1b25e2103a4450
treeffcb3a1320d48f171f2940f9284f0e218b3f93d3
parent9d1524b7de1cfcc3615cd39cf7a8df82904113cd
lib: fix notification by reading one byte at a time from Unix socket

Internally, several bytes will be read at once and the notification
should be detected earlier. This fixes a regression introduced in
5aeda65433fd41b7bb67f908d8c4741f045ce508 because we relied on datagram
boundary semantics. This was not important when pulling information
but we still used this semantic when pushing information. Closes: #43.
src/lib/atom.c
src/lib/connection.c