]> Cypherpunks.ru repositories - govpn.git/commit
Fixed rehandshake-related code
authorSergey Matveev <stargrave@stargrave.org>
Thu, 17 Sep 2015 17:49:37 +0000 (20:49 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Thu, 17 Sep 2015 17:49:37 +0000 (20:49 +0300)
commit0b9229f5d3bb97423e7f38cd209ca8e5014c9c76
tree6c622d7e0197c61ca764ee2b0d524486c4571e46
parentfebace06804e4b4f2011a652de365a8ba909e1ab
Fixed rehandshake-related code

* Do not use buffered termination channels: we need guarantee that
  processor is stopped. Otherwise we can be locked and client will be
  timeouted
* Single peersLock call, no separate read and write related
* Create processing goroutine earlier

Signed-off-by: Sergey Matveev <stargrave@stargrave.org>
src/govpn/cmd/govpn-server/common.go
src/govpn/cmd/govpn-server/tcp.go
src/govpn/cmd/govpn-server/udp.go