Hacker News new | ask | show | jobs
by abhishekjha 1868 days ago
Isn't python's server blocking? If you make two requests simultaneously, one of them will have to wait.
2 comments

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.

Python 2 was blocking. Python 3 is non-blocking.