add small delays to allow for sockets behaving slowly on linux (compared to MacOS or Windows) and causing build to break on CI box