Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
爱吃血肠
spring-framework
提交
f4e02883
S
spring-framework
项目概览
爱吃血肠
/
spring-framework
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
spring-framework
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
f4e02883
编写于
11月 19, 2019
作者:
R
Rossen Stoyanchev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Remove mentions of Tomcat async request timeout value
Close gh-24030
上级
2728f10a
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
9 addition
and
9 deletion
+9
-9
spring-test/src/main/java/org/springframework/mock/web/MockAsyncContext.java
...n/java/org/springframework/mock/web/MockAsyncContext.java
+2
-2
spring-web/src/test/java/org/springframework/mock/web/test/MockAsyncContext.java
...a/org/springframework/mock/web/test/MockAsyncContext.java
+2
-2
spring-webmvc/src/main/java/org/springframework/web/servlet/config/annotation/AsyncSupportConfigurer.java
...web/servlet/config/annotation/AsyncSupportConfigurer.java
+2
-2
spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/RequestMappingHandlerAdapter.java
...t/mvc/method/annotation/RequestMappingHandlerAdapter.java
+1
-1
spring-webmvc/src/main/resources/org/springframework/web/servlet/config/spring-mvc.xsd
...ces/org/springframework/web/servlet/config/spring-mvc.xsd
+1
-1
src/docs/asciidoc/web/webmvc.adoc
src/docs/asciidoc/web/webmvc.adoc
+1
-1
未找到文件。
spring-test/src/main/java/org/springframework/mock/web/MockAsyncContext.java
浏览文件 @
f4e02883
/*
* Copyright 2002-201
8
the original author or authors.
* Copyright 2002-201
9
the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
@@ -53,7 +53,7 @@ public class MockAsyncContext implements AsyncContext {
@Nullable
private
String
dispatchedPath
;
private
long
timeout
=
10
*
1000L
;
// 10 seconds is Tomcat's default
private
long
timeout
=
10
*
1000L
;
private
final
List
<
Runnable
>
dispatchHandlers
=
new
ArrayList
<>();
...
...
spring-web/src/test/java/org/springframework/mock/web/test/MockAsyncContext.java
浏览文件 @
f4e02883
/*
* Copyright 2002-201
8
the original author or authors.
* Copyright 2002-201
9
the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
@@ -53,7 +53,7 @@ public class MockAsyncContext implements AsyncContext {
@Nullable
private
String
dispatchedPath
;
private
long
timeout
=
10
*
1000L
;
// 10 seconds is Tomcat's default
private
long
timeout
=
10
*
1000L
;
private
final
List
<
Runnable
>
dispatchHandlers
=
new
ArrayList
<>();
...
...
spring-webmvc/src/main/java/org/springframework/web/servlet/config/annotation/AsyncSupportConfigurer.java
浏览文件 @
f4e02883
/*
* Copyright 2002-201
8
the original author or authors.
* Copyright 2002-201
9
the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
@@ -71,7 +71,7 @@ public class AsyncSupportConfigurer {
* processing thread has exited and ends when the request is dispatched again
* for further processing of the concurrently produced result.
* <p>If this value is not set, the default timeout of the underlying
* implementation is used
, e.g. 10 seconds on Tomcat with Servlet 3
.
* implementation is used.
* @param timeout the timeout value in milliseconds
*/
public
AsyncSupportConfigurer
setDefaultTimeout
(
long
timeout
)
{
...
...
spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/RequestMappingHandlerAdapter.java
浏览文件 @
f4e02883
...
...
@@ -414,7 +414,7 @@ public class RequestMappingHandlerAdapter extends AbstractHandlerMethodAdapter
* processing thread has exited and ends when the request is dispatched again
* for further processing of the concurrently produced result.
* <p>If this value is not set, the default timeout of the underlying
* implementation is used
, e.g. 10 seconds on Tomcat with Servlet 3
.
* implementation is used.
* @param timeout the timeout value in milliseconds
*/
public
void
setAsyncRequestTimeout
(
long
timeout
)
{
...
...
spring-webmvc/src/main/resources/org/springframework/web/servlet/config/spring-mvc.xsd
浏览文件 @
f4e02883
...
...
@@ -253,7 +253,7 @@
Specify the amount of time, in milliseconds, before asynchronous request handling times out.
In Servlet 3, the timeout begins after the main request processing thread has exited and ends when the request
is dispatched again for further processing of the concurrently produced result. If this value is not set,
the default timeout of the underlying implementation is used
, e.g. 10 seconds on Tomcat with Servlet 3
.
the default timeout of the underlying implementation is used.
]]>
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
...
...
src/docs/asciidoc/web/webmvc.adoc
浏览文件 @
f4e02883
...
...
@@ -4637,7 +4637,7 @@ The MVC configuration exposes the following options related to asynchronous requ
You can configure the following:
* Default timeout value for async requests, which if not set, depends
on the underlying Servlet container
(for example, 10 seconds on Tomcat)
.
on the underlying Servlet container.
* `AsyncTaskExecutor` to use for blocking writes when streaming with
<
<
mvc-ann-async-reactive-types
>
> and for executing `Callable` instances returned from
controller methods. We highly recommended configuring this property if you
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录