I setup a samba server (Version 3.6.9-167.el6_5).One of the sub folder contains more than one thousand, if I delete this folder then I can connect to the server, otherwise I am getting a timeout error (NT_STATUS_IO_TIMEOUT). How can I prevent this error? Is it scanning the whole file system during connection? 
Unable to connect to the samba server
samba