Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Isn't python's server blocking? If you make two requests simultaneously, one of them will have to wait.


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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: