ASF Bugzilla – Attachment 34905 Details for
Bug 60970
Endless loop in Http2UpgradeHandler#writeHeaders
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
A proposal for a fix for the problem.
Reset_target_before_writing_data_to_it_.patch (text/plain), 856 bytes, created by
Christian Wellekötter
on 2017-04-11 12:52:24 UTC
(
hide
)
Description:
A proposal for a fix for the problem.
Filename:
MIME Type:
Creator:
Christian Wellekötter
Created:
2017-04-11 12:52:24 UTC
Size:
856 bytes
patch
obsolete
>Index: java/org/apache/coyote/http2/Http2UpgradeHandler.java >IDEA additional info: >Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP ><+>UTF-8 >=================================================================== >--- java/org/apache/coyote/http2/Http2UpgradeHandler.java (revision e688cd0374185e3e1b9dc8ebc4c865dfc6c5d623) >+++ java/org/apache/coyote/http2/Http2UpgradeHandler.java (revision ) >@@ -537,6 +537,8 @@ > // This ensures the Stream processing thread has control of the socket. > synchronized (socketWrapper) { > while (state != State.COMPLETE) { >+ target.rewind(); >+ target.limit(payloadSize); > state = getHpackEncoder().encode(coyoteResponse.getMimeHeaders(), target); > target.flip(); > ByteUtil.setThreeBytes(header, 0, target.limit());
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 60970
: 34905