Re:Big list of HTTP static server one-liners
by abhishekjha on Thursday May 13, 2021 @05:10AM
(#27140094)
Isn't python's server blocking? If you make two requests simultaneously, one of them will have to wait.
[ Parent
| on HN ]
Re:Big list of HTTP static server one-liners
by masklinn on Thursday May 13, 2021 @06:02AM
(#27140412)
That’s correct. Well blocking is not much of an issue in and of itself but it’s blocking and single process and single threaded, so it can only serve one request at a time.
It’s not usually an issue for small stuff, but it does mean you can’t really use this snippet to serve big files for a lan, which is a bit of a surprise the first time you hit that limitation.