News for hackers. Stuff that matters.
Re:I recommend CGI instead of web frameworks by loup-vaillant on Sunday August 22, 2021 @04:12PM (#28269144)
Wait a minute, how CGI is preventing anyone from reusing connections? The web server doesn’t have to cut connections between CGI requests, the same way it doesn’t have to cut connections between the delivery of two different static files.

Maybe current web servers are written in such a way that they do cut connections between CGI requests, but I’d be surprised if they really have to.

Re:I recommend CGI instead of web frameworks by TheCoelacanth on Sunday August 22, 2021 @10:38PM (#28271809)
They aren't talking about client->server connections but about server->DB or server->other server connections.

With CGI, any connection you create in your script is going to close at the end of the request when your process shuts down.