[PATCH] device: add write queue mutex for peer

2020-11-18 Thread liuhaichao
From: Haichao Liu fix panic: send on closed channel when remove peer Change-Id: Ica0e2447cd941bd3a26948aacafc837904ea18b2 Signed-off-by: Haichao Liu --- device/peer.go| 6 +- device/receive.go | 2 ++ device/send.go| 4 3 files changed, 11 insertions(+), 1 deletion(-) diff --

[PATCH] device: make locks more efficient

2019-08-28 Thread liuhaichao
From: Haichao Liu Change-Id: I515c38e9911d4baeb4c2a45249c18a371864f8e1 Signed-off-by: Haichao Liu --- device/uapi.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/device/uapi.go b/device/uapi.go index 99cb421..c8499e2 100644 --- a/device/uapi.go +++ b/device/uapi.go @@

[PATCH] tun: darwin: fix panic: close of closed channel

2019-08-25 Thread liuhaichao
From: liuhaichao Change-Id: Idd77fef05316f817e03a0f905ac5e6d53a6865f7 --- tun/tun_darwin.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/tun/tun_darwin.go b/tun/tun_darwin.go index 0815495..07abc6b 100644 --- a/tun/tun_darwin.go +++ b/tun/tun_darwin.go @@ -296,8 +296,6 @@ func (tun

[PATCH] device: make locks more efficient

2019-08-21 Thread liuhaichao
From: liuhaichao Change-Id: I515c38e9911d4baeb4c2a45249c18a371864f8e1 --- device/uapi.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/device/uapi.go b/device/uapi.go index 99cb421..c8499e2 100644 --- a/device/uapi.go +++ b/device/uapi.go @@ -283,12 +283,12 @@ func

[PATCH] rwcancel: error should be provided by Unix function

2019-07-17 Thread liuhaichao
From: liuhaichao Change-Id: I7df1f9e0ce43dbe9c415e834757385dad2398707 --- rwcancel/rwcancel.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rwcancel/rwcancel.go b/rwcancel/rwcancel.go index 62397c2..3abfd0a 100644 --- a/rwcancel/rwcancel.go +++ b/rwcancel/rwcancel.go