Using CherryPy as a blocking/non-threading server for easier debugging

与世无争的帅哥 提交于 2019-12-08 10:48:35

问题


Is it possible to use the CherrPy server as a blocking/non-threading server (for easier debugging?)


回答1:


No. Not only does the wsgiserver start its own set of worker threads (10 by default, but even if you only specified 1 that's still 1 thread for the listening socket and 1 worker thread). Even if that were not true, if you use the rest of CherryPy (i.e. the engine), it runs that 1 listener thread in a separate thread from the main thread.



来源:https://stackoverflow.com/questions/1502431/using-cherrypy-as-a-blocking-non-threading-server-for-easier-debugging

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!