Belyenochi opened a new pull request #63:
URL: https://github.com/apache/apisix-go-plugin-runner/pull/63


   There are two things I don't understand
   First, I don't know when to add Context to Request to capture cancellation 
logic (HttpClient.Do implementation of Http package relies on infinite loop to 
capture ctx.Done), does this mean that plugin writers need to get context and 
do some processing by themselves
   Second, if the TimeOut time is set globally, what is the meaning of the 
context in the Request structure of the Plugin?
   
   for zh
   有两个不理解的地方还望指点!
   
第一,我不了解如果在Request里加上Context何时去捕获取消逻辑(Http包的HttpClient.Do实现依赖死循环去捕获ctx.Done),这是否意味着plugin编写者需要获取context自己做一些处理
   第二,如果TimeOut时间全局设置了那么Plugin的Request结构包含context的意义是什么呢?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to