[ 
https://issues.apache.org/jira/browse/SCB-887?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16603786#comment-16603786
 ] 

ASF GitHub Bot commented on SCB-887:
------------------------------------

wujimin commented on a change in pull request #891: [SCB-887]aysnc servlet 
timeout is too short and may block container pool when tasks are timeout
URL: 
https://github.com/apache/incubator-servicecomb-java-chassis/pull/891#discussion_r215108373
 
 

 ##########
 File path: 
common/common-rest/src/main/java/org/apache/servicecomb/common/rest/AbstractRestInvocation.java
 ##########
 @@ -142,6 +145,13 @@ protected void scheduleInvocation() {
     });
   }
 
+  private boolean isInQueueTimeout() {
+    if (System.nanoTime() - invocation.getStartTime() > 
CommonRestConfig.getRequestWaitInPoolTimeout() * 1_000_000) {
 
 Review comment:
   just return directly

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


> aysnc servlet timeout is too short and may block container pool when tasks 
> are timeout
> --------------------------------------------------------------------------------------
>
>                 Key: SCB-887
>                 URL: https://issues.apache.org/jira/browse/SCB-887
>             Project: Apache ServiceComb
>          Issue Type: Improvement
>          Components: Java-Chassis
>    Affects Versions: java-chassis-1.0.0
>            Reporter: liubao
>            Assignee: liubao
>            Priority: Major
>
> # aysnc servlet timeout is too short, and this is not applicable for time 
> consuming tasks.
>  # If setting timeout too long, may block container pool and time out 
> requests in queue get executed



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to