Paul Clapham wrote:Hi Martin, welcome to the Ranch!
So, what are you doing wrong? You're expecting the wrong output. Your server code is telling you that two connections have been made to your server. For some reason you're under the impression that only one connection was made, but you haven't posted any code which shows how the connections are being made, so it's impossible to tell why you might incorrectly think that.
Thank you.
When the code above is executed and I type
http://localhost:9898 in the browser, a connection is established but I thought just one thread would execute, not two. Maybe I write the code in the wrong way?