You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encountered a panic error stating "connection already exists" while using webtransport-go. The error occurs in the AddConn method of the connMultiplexer struct within the quic-go package. Below is a detailed explanation of the problem along with the relevant code snippets.
func (m *connMultiplexer) AddConn(c indexableConn) {
m.mutex.Lock()
defer m.mutex.Unlock()
connIndex := m.index(c.LocalAddr())
p, ok := m.conns[connIndex]
if ok {
panic("connection already exists")
}
m.conns[connIndex] = p
}
Details:
I am attempting to establish a WebTransport server and client using the webtransport-go library.
The server initializes and listens for connections using the QUIC protocol.
Upon establishing a connection, the server attempts to add the connection to the multiplexer, resulting in a panic indicating that the connection already exists.
Steps to Reproduce:
Run the provided code.
Observe the panic error with the message "connection already exists".
Expected Behavior:
The server should establish connections without encountering a panic, handling multiple connections appropriately.
Request:
Please provide guidance on resolving this issue.
If this is a known issue, suggest any workarounds or fixes.
Update the documentation if necessary to reflect any changes or known limitations.
Thank you for your assistance.
The text was updated successfully, but these errors were encountered:
Description:
I encountered a panic error stating "connection already exists" while using webtransport-go. The error occurs in the AddConn method of the connMultiplexer struct within the quic-go package. Below is a detailed explanation of the problem along with the relevant code snippets.
Code Implementation:
Server:
Client:
main:
Error:
Problematic Code:
Details:
I am attempting to establish a WebTransport server and client using the webtransport-go library.
The server initializes and listens for connections using the QUIC protocol.
Upon establishing a connection, the server attempts to add the connection to the multiplexer, resulting in a panic indicating that the connection already exists.
Steps to Reproduce:
Run the provided code.
Observe the panic error with the message "connection already exists".
Expected Behavior:
The server should establish connections without encountering a panic, handling multiple connections appropriately.
Request:
Please provide guidance on resolving this issue.
If this is a known issue, suggest any workarounds or fixes.
Update the documentation if necessary to reflect any changes or known limitations.
Thank you for your assistance.
The text was updated successfully, but these errors were encountered: