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
Is there a chance to have support of net.Listener? I wanted to try it out and I got the following error:
cannot use lis (type quic.Listener) as type net.Listener in argument to grpcServer.Serve:
quic.Listener does not implement net.Listener (wrong type for Accept method)
have Accept() (quic.Session, error)
want Accept() (net.Conn, error)
The text was updated successfully, but these errors were encountered:
The concepts behind quic (e.g. multiple [uni-directional] streams over one connection) don't map well to the current Go stdlib types, so we don't implement them exactly. Most of the API is similar though wherever possible.
In the end most people will likely just use QUIC as a drop-in replacement for HTTP, and that fortunately easy enough (look at the h2quic package).
I think the assertion they don't map well was premature. only pieces that would need to be special cased is the dialer and listener.
just repeatedly 'dial' a server to get mulitple conn's and each conn would have a duplex uni directional stream (which is what standard tcp connections have anyways)....
even if such an interface doesn't grant the full power of quic it'd still be handy for interop.
Hi,
Is there a chance to have support of net.Listener? I wanted to try it out and I got the following error:
The text was updated successfully, but these errors were encountered: