[PATCH] Cache messaging dgm connections

Andrew Bartlett abartlet at samba.org
Fri Sep 16 16:24:14 UTC 2016


On Sun, 2016-09-11 at 16:07 +0200, Ralph Böhme wrote:
> Hi!
> 
> Attached is a performance improvement for our dgram messaging.
> 
> In most cases, the current code opens a new connection to peers for
> every message and closes it when done. This patchset adds caching of
> connections to peers.
> 
> Please review & push if ok.

I was reading over this after it got re-raised for the flapping issue,
and I'm curious:

Why do you remove the direct blocking datagram send before attempting
to create the connected socket?

Andrew Bartlett

-- 
Andrew Bartlett                       http://samba.org/~abartlet/
Authentication Developer, Samba Team  http://samba.org
Samba Developer, Catalyst IT          http://catalyst.net.nz/services/samba




More information about the samba-technical mailing list