Open muayiqi opened 4 months ago
Edge is sending two requests. If you use another browser like Firefox, you'll get the behavior you expect.
If you want to see what the requests are, you could print them out like we did in the first version of handle_connection()
(listing 20-2).
my main function is :
and other codes are the same as this book, when I run the server, then use the Edge browser to access "localhost:7878" only once, I get the output:
I mean that one request but get two jobs, when I use:
echo "hello" > /dev/tcp/127.0.0.1/7878
in Ubuntu, I get the proper output, one request, one job. I really want to know the reason, thank you~