From: Jon M. <jo...@te...> - 2006-07-19 14:08:13
|
> Seriously, if you've only got until Saturday why worry about sockets? > The LDAP server should have a default idle timeout that would cover > in the first instance. > It's sorted - quite easy really. I'll explain why it's important - Leeds has about 8 different servers whose IP numbers are all mapped to a single DNS name. Any server can be brought down for maintenance at any time. So, I've added code that resolves the complete list of IP numbers against the configured ldap server name. It then cycles around them until a connection is made. (Also does some load balancing.) If a server is running but not accepting connections on the ldap port the attempt to connect fails immediately but if the server is not running at all the timeout is several minutes. This is a pointless delay if there are other LDAP servers ready and waiting. Anyway it was quite easy to implement. Jon |