Bug 13786 - messaging gets stuck when pids are recycled
messaging gets stuck when pids are recycled
Status: NEW
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Other
4.10.0rc1
All All
: P5 normal
: ---
Assigned To: Stefan Metzmacher
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2019-02-13 10:00 UTC by Stefan Metzmacher
Modified: 2019-02-13 13:35 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Metzmacher 2019-02-13 10:00:03 UTC
The messaging_dgm code caches connected datagram sockets based on the
destination pid for 1 second.
    
The fact that samba_dnsupdate constantly recreates its messaging
context (and the underlying datagram socket) means that we the winbindd
messaging context may get a stale connection. As a result sending any
message from winbindd back to samba_dnsupdate will result in
ECONNREFUSED.
    
That means the IRPC response from winbindd never reaches
samba_dnsupdate, which will then hit a timeout.
    
In turn samba_dnsupdate on the RODC times out.