Ldap connection timed out error

Hi,

we are using Ldap search functionality in our project using the built-in service pub.client.ldap:search but when we are running this service intially we are getting below error:

java.net.SocketTimeoutException: Read timed out

after getting this error for the first few times the service runs fine and we get proper results also server log is not showing any relevant info on this .
looking forward for some suggestions.

It should be network related, have you checked with the network team?