qsrg edited a comment on issue #3929:
URL: https://github.com/apache/rocketmq/issues/3929#issuecomment-1060153580


   > You can set a send message timeout by:
   > 
   > ```java
   > producer.setSendMsgTimeout();
   > 
   > //or
   > producer.send(msg, sendTimeout);
   > ```
   
   
org.apache.rocketmq.client.impl.producer.DefaultMQProducerImpl#sendDefaultImpl
   ```
               for (; times < timesTotal; times++) {
   //...
                           if (timeout < costTime) {
                               callTimeout = true;
                               break;
                           }
   ```
   the timeout parameter will be passed to the method 
`NettyRemotingAbstract.invokeSyncImpl  ` and maybe exhausted in 
`responseFuture.waitResponse`,no matter how much timeout setted. so producer  
may not try again


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