mirror of
https://github.com/cloudflare/cloudflared.git
synced 2025-07-27 23:19:58 +00:00
TUN-4597: Add a QUIC server skeleton
- Added a QUIC server to accept streams - Unit test for this server also tests ALPN - Temporary echo capability for HTTP ConnectionType
This commit is contained in:
18
vendor/github.com/lucas-clemente/quic-go/streams_map_generic_helper.go
generated
vendored
Normal file
18
vendor/github.com/lucas-clemente/quic-go/streams_map_generic_helper.go
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
package quic
|
||||
|
||||
import (
|
||||
"github.com/cheekybits/genny/generic"
|
||||
|
||||
"github.com/lucas-clemente/quic-go/internal/protocol"
|
||||
)
|
||||
|
||||
// In the auto-generated streams maps, we need to be able to close the streams.
|
||||
// Therefore, extend the generic.Type with the stream close method.
|
||||
// This definition must be in a file that Genny doesn't process.
|
||||
type item interface {
|
||||
generic.Type
|
||||
updateSendWindow(protocol.ByteCount)
|
||||
closeForShutdown(error)
|
||||
}
|
||||
|
||||
const streamTypeGeneric protocol.StreamType = protocol.StreamTypeUni
|
Reference in New Issue
Block a user