John Nagle <nagle at animats.com> writes: > The code that stored them looked them up with "getaddrinfo()", and > did this while a lock was set. Don't do that!! > Added a local cache in the program to prevent this. > Performance much improved. Better to release the lock while the getaddrinfo is running, if you can.