kingluo commented on issue #9245:
URL: https://github.com/apache/apisix/issues/9245#issuecomment-1500910173

   @chenwenjun-github
   APISIX does not support proxy-mirror for grpc yet, although nginx does.
   
   And it's not an easy job to make it work. I just give some points:
   1. current proxy_mirror location is filled with proxy_pass directives, i.e. 
http1 only
   2. APISIX enables mirror dynamically, set a flag in the request ctx, but for 
grpc upstream, it invokes `ngx.exec`, which clears the ctx, so mirror is 
disabled
   3. we need to set up correct parameters like URL before sending it out to 
the grpc mirror target, otherwise, it will be an error due to the wrong URL 
`/proxy_mirror`:
   
![1680966318273](https://user-images.githubusercontent.com/4401042/230728583-d089a6d0-8c90-4e44-af39-d26b985b8410.png)
   


-- 
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