mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-03 20:27:35 +03:00
replace usages of session in variable names
This commit is contained in:
parent
e71c236232
commit
fda9f72161
23 changed files with 373 additions and 373 deletions
|
@ -115,9 +115,9 @@ var _ = Describe("Handshake tests", func() {
|
|||
ln, err := quic.ListenAddr("localhost:0", getTLSConfig(), quicServerConf)
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
serverChan <- ln
|
||||
sess, err := ln.Accept(context.Background())
|
||||
conn, err := ln.Accept(context.Background())
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
str, err := sess.OpenUniStream()
|
||||
str, err := conn.OpenUniStream()
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
_, err = str.Write(PRData)
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
|
@ -127,14 +127,14 @@ var _ = Describe("Handshake tests", func() {
|
|||
ln := <-serverChan
|
||||
defer ln.Close()
|
||||
|
||||
sess, err := quic.DialAddr(
|
||||
conn, err := quic.DialAddr(
|
||||
fmt.Sprintf("localhost:%d", ln.Addr().(*net.UDPAddr).Port),
|
||||
getTLSClientConfig(),
|
||||
quicClientConf,
|
||||
)
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
defer sess.CloseWithError(0, "")
|
||||
str, err := sess.AcceptUniStream(context.Background())
|
||||
defer conn.CloseWithError(0, "")
|
||||
str, err := conn.AcceptUniStream(context.Background())
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
data, err := io.ReadAll(str)
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue