mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 20:11:19 -04:00
retry client offers immediately instead of reset, combine sendOffer and receiveAnswer into exchangeSDP
This commit is contained in:
parent
d61534b3a0
commit
960a136c64
3 changed files with 70 additions and 62 deletions
|
@ -47,8 +47,6 @@ func copyLoop(a, b net.Conn) {
|
|||
wg.Done()
|
||||
}()
|
||||
wg.Wait()
|
||||
// a.Close()
|
||||
// b.Close()
|
||||
log.Println("copy loop ended")
|
||||
}
|
||||
|
||||
|
@ -108,9 +106,7 @@ func handler(conn *pt.SocksConn) error {
|
|||
|
||||
// TODO: Make SOCKS acceptance more independent from WebRTC so they can
|
||||
// be more easily interchanged.
|
||||
|
||||
copyLoop(conn, remote)
|
||||
// <-remote.endChannel
|
||||
log.Println("----END---")
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue