View | Details | Raw Unified | Return to bug 60970
Collapse All | Expand All

(-)java/org/apache/coyote/http2/Http2UpgradeHandler.java (+2 lines)
Lines 537-542 Link Here
537
        // This ensures the Stream processing thread has control of the socket.
537
        // This ensures the Stream processing thread has control of the socket.
538
        synchronized (socketWrapper) {
538
        synchronized (socketWrapper) {
539
            while (state != State.COMPLETE) {
539
            while (state != State.COMPLETE) {
540
                target.rewind();
541
                target.limit(payloadSize);
540
                state = getHpackEncoder().encode(coyoteResponse.getMimeHeaders(), target);
542
                state = getHpackEncoder().encode(coyoteResponse.getMimeHeaders(), target);
541
                target.flip();
543
                target.flip();
542
                ByteUtil.setThreeBytes(header, 0, target.limit());
544
                ByteUtil.setThreeBytes(header, 0, target.limit());

Return to bug 60970