06136312bb
regen files with never protoc ( #6 )
...
* regen files with never protoc
* rewrite import path
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-08-19 17:47:17 +03:00
Asim Aslam
4413372a3f
Decruft the broker by removing Event interface ( #1940 )
2020-08-18 14:00:51 +01:00
Asim Aslam
fae4151027
Add a build package ( #1926 )
...
* Add a build package
* fix go mod
* package tar
2020-08-11 16:51:58 +01:00
Asim Aslam
4db8ea8f6a
Move tunnel to its own package ( #1921 )
2020-08-10 17:31:21 +01:00
Asim Aslam
fb8533b74e
Update tunnel
2020-08-06 18:50:35 +01:00
Lars Lehtonen
3d1ba914fc
tunnel: remove unused test loop ( #1878 )
...
Co-authored-by: Asim Aslam <asim@aslam.me>
2020-07-29 12:51:09 +01:00
Asim Aslam
563768b58a
v3 refactor ( #1868 )
...
* Move to v3
Co-authored-by: Ben Toogood <bentoogood@gmail.com>
2020-07-27 13:22:00 +01:00
1063b954de
dont display t.Log/t.Logf as errors in github actions ( #1508 )
...
* fix tests and github action annotations
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-04-09 14:05:46 +03:00
7b385bf163
minimize allocations in logger and tunnel code ( #1323 )
...
* logs alloc
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* fix allocs
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* fix allocs
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* tunnel allocs
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* try to fix tunnel
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* cache cipher for send
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* more logger
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* more logger
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* more logger
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* more logger
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* more logger
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* more logger
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* more logger
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-03-11 17:55:39 +00:00
43b0dbb123
tunnel: reduce allocation and improve performance ( #1320 )
...
* tunnel: reduce allocation and improve performance
BenchmarkSha256Old-16 100000 156748 ns/op 11835 B/op 168 allocs/op
BenchmarkSha256Old-16 100000 156229 ns/op 11819 B/op 168 allocs/op
BenchmarkSha256New-16 100000 154751 ns/op 11107 B/op 161 allocs/op
BenchmarkSha256New-16 100000 154263 ns/op 11110 B/op 161 allocs/op
simple change lowers allocations and brings performance
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* fix
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* tunnel: reuse buf in Decrypt
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* fix unneeded conversations
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* base32 string is smaller than hex string
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-03-09 17:10:08 +00:00
8ee5607254
[WIP]: broker ErrorHandler option ( #1296 )
...
* broker ErrorHandler option
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* rewrite Event interface, add error
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* implement new interface
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* change ErrorHandler func to broker.Handler
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* fix
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-03-06 21:25:16 +00:00
5b0175c2e5
allocations improvements and tunnel fixes ( #1248 )
...
* reduce allocations in tunnel code
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* another allocation fix
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* allocate maps with len if it known
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* allocate key for send once
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-02-24 14:15:20 +00:00
117f56ebf7
prune util/log and user logger ( #1237 )
...
* prune util/log and user logger
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* plaintext logger
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* add newline
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-02-23 13:45:20 +00:00
Lars Lehtonen
88457b812e
tunnel: Prune Unused Functions ( #1224 )
...
* tunnel: remove unused link.setLoopback()
* tunnel: remove unused link.accept()
* tunnel: remove unused link.connect()
2020-02-20 17:05:49 +00:00
f23638c036
fix import paths for v2 release
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-01-30 14:44:40 +03:00
Asim Aslam
6a9f5fac61
fire send in a go routine to prevent blocking other requests
2020-01-25 23:16:00 +00:00
Milos Gajdos
efcac3d009
Define tunnel errors
2020-01-13 20:14:30 +00:00
Milos Gajdos
78aed5beed
Fixed tunnel race conditions. ( #1094 )
2020-01-08 14:48:38 +00:00
Asim Aslam
df9055f69c
continue to process messages even after the connection is closed
2020-01-03 20:43:53 +00:00
Asim Aslam
b0b6b8fce2
final updates
2019-12-13 15:27:47 +00:00
Asim Aslam
caa74d1b5f
fix build
2019-12-12 23:29:44 +00:00
Asim Aslam
f6b4a9da1c
strip some code
2019-12-12 23:20:31 +00:00
Asim Aslam
74c5102e41
strip a couple things
2019-12-12 21:49:39 +00:00
Asim Aslam
7bd50cd251
fix more broken cruft
2019-12-12 17:10:32 +00:00
Asim Aslam
df728aaddd
remove go routines from tunnel, fire network messages in go routines
2019-12-12 13:34:08 +00:00
Asim Aslam
ae934c19f1
fix tunnel test
2019-12-12 13:04:34 +00:00
Asim Aslam
e260cc4a24
save cruft
2019-12-12 12:27:46 +00:00
Asim Aslam
27af221fd2
batch metric updates
2019-12-11 15:23:08 +00:00
Asim Aslam
6e28e7a86f
Save current state of the world
2019-12-11 14:37:03 +00:00
Asim Aslam
6064e1426c
fix some potential go routine leaks
2019-12-08 15:02:54 +00:00
Asim Aslam
d28a868e46
Fix network startup connect
2019-12-08 14:37:17 +00:00
Asim Aslam
398acc67ca
fix broken test
2019-12-08 13:45:24 +00:00
Asim Aslam
6307d6ba51
further cleanup of tunnel/network
2019-12-08 12:12:20 +00:00
Asim Aslam
283c85d256
done
2019-12-08 00:53:55 +00:00
Asim Aslam
9bd0fb9125
save changes
2019-12-07 23:28:39 +00:00
Asim Aslam
c445aed6b1
Cleanup and speedup network convergence along with direct messaging for connect and solicit
2019-12-07 19:54:29 +00:00
Asim Aslam
1d8c66780e
save working solution
2019-12-06 00:18:40 +00:00
Asim Aslam
219efd27e9
Optimise the multicast to use one session in the tunnel
2019-12-05 23:11:42 +00:00
Milos Gajdos
5db7514a91
This PR fixes various tunnel race conditions
2019-12-05 15:50:32 +00:00
a1eaf9cc20
linting fixes
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2019-12-04 00:22:02 +03:00
Asim Aslam
bb1a1358b7
Merge pull request #1012 from Astone-Chou/lint
...
improve code quality
2019-12-03 13:10:04 +00:00
Astone
29fb58db39
improve code quality
2019-12-03 20:59:02 +08:00
Asim Aslam
2c0801fc1c
couple bug fixes in tunnel
2019-12-03 08:11:36 +00:00
Asim Aslam
93d66afe8c
fix that broken logic
2019-12-01 19:43:36 +00:00
Asim Aslam
c840cee404
A variety of fixes to try combat the multicast issue
2019-12-01 19:36:16 +00:00
Asim Aslam
9678daeafa
fix bug in the tunnel which causes multicast connections to be closed
2019-11-30 01:14:40 +00:00
Asim Aslam
107124e5dc
Changes for the storm
2019-11-29 17:27:29 +00:00
Milos Gajdos
9095b99f6b
Token has been stripped; Headers are encrypted
2019-11-25 18:56:00 +00:00
Milos Gajdos
f82c267d81
Encrypt session communication
2019-11-25 15:37:38 +00:00
Milos Gajdos
61fe552ac4
First commit: Outline of tunnel encryption code
2019-11-25 14:58:12 +00:00