Re: Blocking DNS lookup on MC startup



On Wed, 31 May 2006, Pavel Tsekov wrote:

There are more calls to gethostbyname() after the get_myname () call. load_interfaces() is doing gethostbyname() for every single value of the
"interfaces" parameter of smb.conf. If interfaces doesn't contain an
ip_address/netmask pair load_interfaces() tries to resolve the value
via gethostbyname() :(

Another solution would be to delay the samba lib initialization until the first samba request. This way it will be clearly visible for the user that the hang is due to a samba request. Of course the initialization must be
made interruptable.

Opinions ?



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]