a problem of unix domain socket
Jeremy Allison
jra at samba.org
Tue May 11 21:58:51 GMT 2004
On Fri, May 07, 2004 at 06:38:51PM +0900, kawasa_r at itg.hitachi.co.jp wrote:
> After an abnormal termination of the winbind daemon, processses which tried to
> communicate winbind daemon hang.
>
> Processes use UNIX domain sockets when they communicate winbind daemon.
> This socket does not detects timeout when establishing the connection, and
> sending/receiveing data in default. Because of this specification, if
> winbind daemon in LISTEN status is abnormally terminated, processes that
> communicating winbind daemon fell into eternal waiting status.
>
> Set nonblock attribute to the UNIX domain socket before communicate winbind daemon.
> Then, retry if failed to establish connection and send/receive data.
> When retry the managements, define a threshold and detect timeout errors.
Great patch ! Applied, thanks !
Jeremy.
More information about the samba-technical
mailing list