messaging: Fix queueing on FreeBSD
commitd7ccf0d977c39d49c29a4abb1d0b3e2f7a406016
authorVolker Lendecke <vl@samba.org>
Wed, 23 Nov 2016 15:51:25 +0000 (23 16:51 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 20 Jun 2017 21:03:11 +0000 (20 23:03 +0200)
treef8ae8311ec4e0704dce4ff18318ada586a273fbd
parentb67262b40a924d5fa6576aacd2409ace808c730d
messaging: Fix queueing on FreeBSD

FreeBSD does not do the nice blocking send that Linux does. Instead,
it returns ENOBUFS if the dst socket is full. According to the
manpage you have to do polling. Try with exponential backoff, at
the end try once a second forever.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Tue Jun 20 23:03:11 CEST 2017 on sn-devel-144
source3/lib/messages_dgm.c