Skip to content

问下在并发模型中连接协程到流协程分出来的是什么? #837

Discussion options

You must be logged in to vote
  1. 在HTTP2/SPDY连接中,每个流的请求及响应的处理,是在单独的流协程执行
    参见:https://github.com/bfenetworks/bfe/blob/develop/bfe_http2/server.go#L1817

  2. 连接关闭时,连接协程在退出前将更新流的状态;相关的流协程在执行请求读取或响应发送操作,将出现IO错误并结束处理
    参见:https://github.com/bfenetworks/bfe/blob/develop/bfe_spdy/server_conn.go#L790

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mileszhang2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants