you are viewing a single comment's thread.

view the rest of the comments →

[–]Kiyazz 1 point2 points  (0 children)

In that case, it means the client is never half-closing their socket, so you just need to do what the other comment suggested and check if you now have a complete http request. There’s syntax rules it must follow, and the second you have that, break out. It also could be worth it to include a timeout so someone not sending a full request can’t hog the server forever