Projects
openEuler:Mainline
tomcat
_service:tar_scm:CVE-2019-0199-1.patch
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:CVE-2019-0199-1.patch of Package tomcat
--- tomcat/java/org/apache/coyote/http2/Http2Protocol.java 2019/02/01 10:17:08 1852697 +++ tomcat/java/org/apache/coyote/http2/Http2Protocol.java 2019/02/01 10:28:01 1852698 @@ -42,8 +42,10 @@ public class Http2Protocol implements UpgradeProtocol { static final long DEFAULT_READ_TIMEOUT = 10000; - static final long DEFAULT_KEEP_ALIVE_TIMEOUT = -1; static final long DEFAULT_WRITE_TIMEOUT = 10000; + static final long DEFAULT_KEEP_ALIVE_TIMEOUT = -1; + static final long DEFAULT_STREAM_READ_TIMEOUT = 20000; + static final long DEFAULT_STREAM_WRITE_TIMEOUT = 20000; // The HTTP/2 specification recommends a minimum default of 100 static final long DEFAULT_MAX_CONCURRENT_STREAMS = 200; // Maximum amount of streams which can be concurrently executed over @@ -57,9 +59,14 @@ private static final byte[] ALPN_IDENTIFIER = ALPN_NAME.getBytes(StandardCharsets.UTF_8); // All timeouts in milliseconds + // These are the socket level timeouts private long readTimeout = DEFAULT_READ_TIMEOUT; - private long keepAliveTimeout = DEFAULT_KEEP_ALIVE_TIMEOUT; private long writeTimeout = DEFAULT_WRITE_TIMEOUT; + private long keepAliveTimeout = DEFAULT_KEEP_ALIVE_TIMEOUT; + // These are the stream level timeouts + private long streamReadTimeout = DEFAULT_STREAM_READ_TIMEOUT; + private long streamWriteTimeout = DEFAULT_STREAM_WRITE_TIMEOUT; + private long maxConcurrentStreams = DEFAULT_MAX_CONCURRENT_STREAMS; private int maxConcurrentStreamExecution = DEFAULT_MAX_CONCURRENT_STREAM_EXECUTION; // If a lower initial value is required, set it here but DO NOT change the @@ -145,6 +152,16 @@ } + public long getWriteTimeout() { + return writeTimeout; + } + + + public void setWriteTimeout(long writeTimeout) { + this.writeTimeout = writeTimeout; + } + + public long getKeepAliveTimeout() { return keepAliveTimeout; } @@ -155,13 +172,23 @@ } - public long getWriteTimeout() { - return writeTimeout; + public long getStreamReadTimeout() { + return streamReadTimeout; } - public void setWriteTimeout(long writeTimeout) { - this.writeTimeout = writeTimeout; + public void setStreamReadTimeout(long streamReadTimeout) { + this.streamReadTimeout = streamReadTimeout; + } + + + public long getStreamWriteTimeout() { + return streamWriteTimeout; + } + + + public void setStreamWriteTimeout(long streamWriteTimeout) { + this.streamWriteTimeout = streamWriteTimeout; }
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2