Skip to content

QuicConnectionAddress#toString doesn't show the actual connection id #338

@violetagg

Description

@violetagg

With the current implementation we have:

@Override
public String toString() {
if (this == EPHEMERAL) {
return "QuicConnectionAddress{EPHEMERAL}";
}
return "QuicConnectionAddress{" +
"connId=" + connId + '}';
}

Which results in showing the connection toString like this:

(a86d995442569cff63623df10129c093a4c2b16d)[id: 0xa72ff977, L:QuicConnectionAddress{connId=java.nio.HeapByteBuffer[pos=0 lim=20 cap=20]} ! R:QuicConnectionAddress{connId=java.nio.HeapByteBuffer[pos=0 lim=20 cap=20]}]

Is that intentional?

For example for traceId we have better string representation (a86d995442569cff63623df10129c093a4c2b16d)

byte[] traceId = Quiche.quiche_conn_trace_id(connection.address());
if (traceId != null) {
this.traceId = new String(traceId);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions