Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

添加DTLS支持 #28

Merged
merged 12 commits into from
May 27, 2021
Prev Previous commit
Next Next commit
更改dtlssession的存储方式
  • Loading branch information
bjdgyc committed May 27, 2021
commit 0863313eff8874f11b7e35a187522115ff88bbf7
2 changes: 0 additions & 2 deletions server/sessdata/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ type ConnSession struct {

type DtlsSession struct {
isActive int32
// CSess *ConnSession
CloseChan chan struct{}
closeOnce sync.Once
IpAddr net.IP
Expand Down Expand Up @@ -238,7 +237,6 @@ func (cs *ConnSession) NewDtlsConn() *DtlsSession {

dSess := &DtlsSession{
isActive: 1,
// CSess: cs,
CloseChan: make(chan struct{}),
closeOnce: sync.Once{},
IpAddr: cs.IpAddr,
Expand Down