Home / Function/ acknowledgeInsertCount() — netty Function Reference

acknowledgeInsertCount() — netty Function Reference

Architecture documentation for the acknowledgeInsertCount() function in QpackEncoderDynamicTable.java from the netty codebase.

Function java Buffer Allocators calls 1 called by 2

Entity Profile

Dependency Diagram

graph TD
  4f153071_c170_fc5c_fb3b_551b3a5e579e["acknowledgeInsertCount()"]
  4f2fd884_2460_757f_867b_2f1f2c79f9b9["QpackEncoderDynamicTable"]
  4f153071_c170_fc5c_fb3b_551b3a5e579e -->|defined in| 4f2fd884_2460_757f_867b_2f1f2c79f9b9
  0a901964_d825_b903_5e9a_9b0a52054e86["acknowledgeInsertCountOnAck()"]
  0a901964_d825_b903_5e9a_9b0a52054e86 -->|calls| 4f153071_c170_fc5c_fb3b_551b3a5e579e
  7ad0adeb_aa99_f682_5545_846f56b11697["acknowledgeInsertCountOnCancellation()"]
  7ad0adeb_aa99_f682_5545_846f56b11697 -->|calls| 4f153071_c170_fc5c_fb3b_551b3a5e579e
  822bfefa_4189_eccb_7fbf_ad08f0e65e18["evictUnreferencedEntries()"]
  4f153071_c170_fc5c_fb3b_551b3a5e579e -->|calls| 822bfefa_4189_eccb_7fbf_ad08f0e65e18
  style 4f153071_c170_fc5c_fb3b_551b3a5e579e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http3/src/main/java/io/netty/handler/codec/http3/QpackEncoderDynamicTable.java lines 186–208

    private void acknowledgeInsertCount(int entryIndex, boolean updateKnownReceived) throws QpackException {
        if (entryIndex < 0) {
            throw INVALID_REQUIRED_INSERT_COUNT_INCREMENT;
        }
        for (HeaderEntry e = head.next; e != null; e = e.next) {
            if (e.index == entryIndex) {
                assert e.refCount > 0;
                e.refCount--;
                if (updateKnownReceived && e.index > knownReceived.index) {
                    // https://www.rfc-editor.org/rfc/rfc9204.html#name-known-received-count
                    // If the Required Insert Count of the acknowledged field section is greater than the current Known
                    // Received Count, Known Received Count is updated to that Required Insert Count value.
                    knownReceived = e;
                }
                evictUnreferencedEntries();
                return;
            }
        }
        // We have reached the end of the linked list so the index was invalid and hence the connection should
        // be closed.
        // https://www.rfc-editor.org/rfc/rfc9204.html#section-4.4
        throw INVALID_REQUIRED_INSERT_COUNT_INCREMENT;
    }

Domain

Subdomains

Frequently Asked Questions

What does acknowledgeInsertCount() do?
acknowledgeInsertCount() is a function in the netty codebase, defined in codec-http3/src/main/java/io/netty/handler/codec/http3/QpackEncoderDynamicTable.java.
Where is acknowledgeInsertCount() defined?
acknowledgeInsertCount() is defined in codec-http3/src/main/java/io/netty/handler/codec/http3/QpackEncoderDynamicTable.java at line 186.
What does acknowledgeInsertCount() call?
acknowledgeInsertCount() calls 1 function(s): evictUnreferencedEntries.
What calls acknowledgeInsertCount()?
acknowledgeInsertCount() is called by 2 function(s): acknowledgeInsertCountOnAck, acknowledgeInsertCountOnCancellation.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free