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); |
With the current implementation we have:
netty-incubator-codec-quic/src/main/java/io/netty/incubator/codec/quic/QuicConnectionAddress.java
Lines 67 to 74 in 57af932
Which results in showing the connection
toStringlike this:Is that intentional?
For example for
traceIdwe have better string representation(a86d995442569cff63623df10129c093a4c2b16d)netty-incubator-codec-quic/src/main/java/io/netty/incubator/codec/quic/QuicheQuicChannel.java
Lines 210 to 212 in 57af932