]> git.proxmox.com Git - mirror_frr.git/commit - zebra/dplane_fpm_nl.c
zebra,fpm: fix input handling
authorRafael Zalamena <rzalamena@opensourcerouting.org>
Fri, 17 Jul 2020 17:37:55 +0000 (14:37 -0300)
committerRafael Zalamena <rzalamena@opensourcerouting.org>
Tue, 28 Jul 2020 15:34:12 +0000 (12:34 -0300)
commite1afb97fddcda0b19e684759fc239b1b0ae8517a
tree21dac975596171e5a05ab7306bf4e7e46017937e
parenta2032324643e70aa10e57c6de9a4cf9357d51592
zebra,fpm: fix input handling

Two important fixes:

* `stream_read_try` does a dirty trick and converts the `-1` return to
  `-2` when errno is `EAGAIN`, `EWOULDBLOCK` or `EINTR`.
* Don't enable reads until the connection is complete.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
zebra/dplane_fpm_nl.c