tubingbing opened a new issue, #15827:
URL: https://github.com/apache/dubbo/issues/15827

   ### Pre-check
   
   - [x] I am sure that all the content I provide is in English.
   
   
   ### Search before asking
   
   - [x] I had searched in the 
[issues](https://github.com/apache/dubbo/issues?q=is%3Aissue) and found no 
similar issues.
   
   
   ### Apache Dubbo Component
   
   Java SDK (apache/dubbo)
   
   ### Dubbo Version
   
   dubbo version 3.3.6 and openjdk17
   
   ### Steps to reproduce this issue
   
   proto file:
   
   ```
   syntax = "proto3";
   
   package xxx.grpc.api;
   
   option java_multiple_files = true;
   option java_package = "xxx.grpc.api";
   option java_outer_classname = "HelloWorldProto";
   
   service MyService {
     rpc SayHello (HelloRequest) returns (HelloReply) {}
     rpc SayHelloServerStream (HelloRequest) returns (stream HelloReply) {}
     rpc SayHelloClientStream (stream HelloRequest) returns (HelloReply) {}
     rpc SayHelloBiStream (stream HelloRequest) returns (stream HelloReply) {}
   }
   
   message HelloRequest {
     string name = 1;
   }
   
   message HelloReply {
     string message = 1;
   }
   ```
   Compiling and packaging with grpc-java allows for the use of grpc's 
backpressure, while compiling with dubbo does not support the following code:
   ```
   @GrpcService
   public class MyServiceImpl extends MyServiceGrpc.MyServiceImplBase {
       @Override
       public StreamObserver<HelloRequest> 
sayHelloBiStream(StreamObserver<HelloReply> responseObserver) {
           **ServerCallStreamObserver<HelloReply> serverObs = 
(ServerCallStreamObserver)responseObserver;
           serverObs.disableAutoInboundFlowControl();**
           ........
       }
   }
   ```
   
   
   ### What you expected to happen
   
   I want to know how to solve it
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit a pull request to fix on your own?
   
   - [x] Yes I am willing to submit a pull request on my own!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to