I created my web server on Python with a persistent connection. I checked the socket for readability and closed the connection when reading an empty string.
I tried to make HTTP requests through the address bar. In the debug output, I noticed that my server after a few seconds after my request accepted another readable connection readable, but I only read an empty line from it. I read that an empty string in most cases means that the connection is closed by the sender. After that I close this connection.
I cannot understand why connections come with empty content.
Please could you help me figure out what is the cause of this and what could it mean (connections with empty line).