[
https://issues.apache.org/jira/browse/SCB-887?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16603788#comment-16603788
]
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_r215108592
##########
File path:
transports/transport-rest/transport-rest-servlet/src/main/java/org/apache/servicecomb/transport/rest/servlet/RestAsyncListener.java
##########
@@ -63,24 +64,28 @@ public void onTimeout(AsyncEvent event) throws IOException
{
// to avoid concurrent, must lock request
ServletRequest request = event.getSuppliedRequest();
HttpServletRequestEx requestEx = (HttpServletRequestEx)
request.getAttribute(RestConst.REST_REQUEST);
+ LOGGER.error("Rest request timeout, method {}, path {}.",
requestEx.getMethod(), requestEx.getRequestURI());
Review comment:
maybe we can disable async servlet timeout, just control timeout by
threadpool timeout?
----------------------------------------------------------------
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)