Loading...
This site is best viewed in a modern browser with JavaScript enabled.
Something went wrong while trying to load the full version of this site. Try hard-refreshing this page to fix the error.
nginx关闭的过程中的疑问。
kaka11.chen
在阅读nginx源码中关闭的过程中。
有一事我不明,望各位指教。
如果nginx在做proxy的时候,同一次事件循环处理中,
如果upstream的socket关闭,
我看他会关闭downstream的request,
connection,
那么如果这时downstream有个handler处理的时候
不是资源都没了。
我看nginx同一个fd上他是有做一次事件循环处理只搞一个写
处理或者读处理。
但没有看到upstream和downstream两个之间它怎
么处理这种情况。