vici: Use non-blocking first read when receiving message during client on_read()
authorMartin Willi <martin@revosec.ch>
Wed, 9 Apr 2014 12:01:45 +0000 (14:01 +0200)
committerMartin Willi <martin@revosec.ch>
Wed, 7 May 2014 12:13:37 +0000 (14:13 +0200)
commite00ce378fa6083a162bad505a35719fc25494573
tree2920353416474c2772da3f77b6adea541e4e7dc4
parent7de35b7ff6062b5082b4ea92ef92f87ed56153eb
vici: Use non-blocking first read when receiving message during client on_read()

As select() and finally the watcher may signal an FD even if it does not
actually have data, we must make a non-block read to avoid hanging in the
read callback.
src/libcharon/plugins/vici/libvici.c