mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-04 04:37:36 +03:00
make EarlyListener a struct, not an interface
This commit is contained in:
parent
1b64b13750
commit
86a1234c87
13 changed files with 174 additions and 164 deletions
|
@ -18,14 +18,14 @@ import (
|
|||
)
|
||||
|
||||
type listenerWrapper struct {
|
||||
quic.EarlyListener
|
||||
http3.QUICEarlyListener
|
||||
listenerClosed bool
|
||||
count int32
|
||||
}
|
||||
|
||||
func (ln *listenerWrapper) Close() error {
|
||||
ln.listenerClosed = true
|
||||
return ln.EarlyListener.Close()
|
||||
return ln.QUICEarlyListener.Close()
|
||||
}
|
||||
|
||||
func (ln *listenerWrapper) Faker() *fakeClosingListener {
|
||||
|
@ -91,7 +91,7 @@ var _ = Describe("HTTP3 Server hotswap test", func() {
|
|||
|
||||
tlsConf := http3.ConfigureTLSConfig(getTLSConfig())
|
||||
quicln, err := quic.ListenAddrEarly("0.0.0.0:0", tlsConf, getQuicConfig(nil))
|
||||
ln = &listenerWrapper{EarlyListener: quicln}
|
||||
ln = &listenerWrapper{QUICEarlyListener: quicln}
|
||||
Expect(err).NotTo(HaveOccurred())
|
||||
port = strconv.Itoa(ln.Addr().(*net.UDPAddr).Port)
|
||||
})
|
||||
|
|
|
@ -99,7 +99,7 @@ var _ = Describe("0-RTT", func() {
|
|||
}
|
||||
|
||||
transfer0RTTData := func(
|
||||
ln quic.EarlyListener,
|
||||
ln *quic.EarlyListener,
|
||||
proxyPort int,
|
||||
clientTLSConf *tls.Config,
|
||||
clientConf *quic.Config,
|
||||
|
@ -147,7 +147,7 @@ var _ = Describe("0-RTT", func() {
|
|||
}
|
||||
|
||||
check0RTTRejected := func(
|
||||
ln quic.EarlyListener,
|
||||
ln *quic.EarlyListener,
|
||||
proxyPort int,
|
||||
clientConf *tls.Config,
|
||||
) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue