Tuesday, October 19, 2021

Creating an HTTP server using Python sockets | Sessions?

Hey, I am creating an HTTP server using Python sockets and ran into a problem.

What I am currently doing is creating a thread for each "client" that sends a request to the server in order to receive in an infinite loop any incoming requests. What I noticed is that every request sent from the same browser, a new thread is created, meaning a new client.. Is this supposed to happen or am I supposed to have some sort of client session?

Thanks!



No comments:

Post a Comment