I’d still love to know what’s going on with your setup. I can’t get a local connection to connect in more than 8 milliseconds. All told, each connection, write, read, and stop() call takes approximately 10ms.
I don’t know two things:
1. What your program is doing, since you’ve only shown part of it, not the complete program, and
2. Anything about your network.
I can’t debug this further without more information. For now, I’ll chalk this up to something else your program is doing. All my tests run very quickly on the local network. Even a remote connection _including_ DNS lookup to an external host doesn’t take more than about 60ms.
I don’t know two things:
1. What your program is doing, since you’ve only shown part of it, not the complete program, and
2. Anything about your network.
I can’t debug this further without more information. For now, I’ll chalk this up to something else your program is doing. All my tests run very quickly on the local network. Even a remote connection _including_ DNS lookup to an external host doesn’t take more than about 60ms.
Last edited: