Django  autoreload

https://github.com/django/django/blob/9386586f31b8a0bccf59a1bff647cd829d4e79aa/django/utils/autoreload.py

django/core/management/commands/runserver.py ---> handler = self.get_handler(*args, **options)
run(self.addr, int(self.port), handler,
ipv6=self.use_ipv6, threading=threading, server_cls=self.server_cls)----> django/dispatch/dispatcher.py ---> def init(self, providing_args=None, use_caching=False):
"""
Create a new signal.
providing_args
A list of the arguments this signal can pass along in a send() call.
"""
self.receivers = []
if providing_args is None:
providing_args = []
self.providing_args = set(providing_args)
self.lock = threading.Lock()
self.use_caching = use_caching

https://github.com/python/cpython/blob/master/Lib/socketserver.py

For request-based servers (including socket-based):
- how to handle multiple requests:
- synchronous (one request is handled at a time)
- forking (each request is handled by a new process)
- threading (each request is handled by a new thread)

# poll/select have the advantage of not requiring any extra file descriptor,
# contrarily to epoll/kqueue (also, they require a single syscall).

Another approach to handling multiple simultaneous requests in an
environment that supports neither threads nor fork (or where these are
too expensive or inappropriate for the service) is to maintain an
explicit table of partially finished requests and to use a selector to
decide which request to work on next (or whether to handle a new
incoming request). This is particularly important for stream services
where each client can potentially be connected for a long time (if
threads or subprocesses cannot be used).

最新文章

  1. 运用<div>布局页面练习
  2. python collections模块
  3. Eclipse功能集合
  4. MySQL助理配置
  5. GMT、UTC、PDT 时间是什么?Linux下如何调整时区
  6. HW4.13
  7. div 背景色设置_DIV背景颜色设置
  8. c++ 字符串流 sstream(常用于格式转换) 分类: C/C++ 2014-11-08 17:20 150人阅读 评论(0) 收藏
  9. Linux学习之输入输出重定向
  10. jquery与ajax的XMLHttpRequest对象介绍
  11. C#2.0中使用yield关键字简化枚举器的实现
  12. C语言多维数组的指针传递
  13. Python_网络攻击之端口
  14. 2018-软工机试-E-热河路(TLE只拿了90分,待思考)
  15. adb devices unauthorized解决办法
  16. WAR包方式安装Jenkins
  17. Spark学习:ShutdownHookManager虚拟机关闭钩子管理器
  18. Alpha版总结会议——班级派
  19. CF876 D 树状数组
  20. Thinkphp5 Route用法

热门文章

  1. cmd运行乱码或显示编码GBK的不可映射字符解决方法
  2. eclipse 再见,android studio 新手入门教程(三)Github(ignore 忽略规则)的使用
  3. maven打包,跳过生成javadoc
  4. QPushButton
  5. 每日一个linux命令6 -- mv
  6. ElasticSearch教程——filter与query对比(转学习使用)
  7. tree 中文(转)
  8. 《Spring Boot 实战纪实》之前言
  9. ios iphone 崩溃字符记录
  10. Itranswarp 搭建个人 Wiki