Commit Graph

14 Commits

Author SHA1 Message Date
78d2884ced 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-09-20 15:11:09 +03:00
Lars Lehtonen
cf4b4aecda server/grpc: Prune Unused Code (#1220)
* server/grpc: remove unused grpcServer.newCodec()

* server/grpc: remove unused defaultRPCCodecs
2020-09-20 15:11:08 +03:00
70cc7c93ef fixes for safe conversation and avoid panics (#1213)
* fixes for safe convertation

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>

* fix client publish panic

If broker connect returns error we dont check it status and use
it later to publish message, mostly this is unexpected because
broker connection failed and we cant use it.
Also proposed solution have benefit - we flag connection status
only when we have succeseful broker connection

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>

* api/handler/broker: fix possible broker publish panic

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-09-20 15:11:08 +03:00
6b5eb3555b fix import paths for v2 release
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-09-20 15:11:08 +03:00
Asim Aslam
74e52bdb3e fix grpc json streaming by setting content sub type (#1089) 2020-09-20 15:11:08 +03:00
Asim Aslam
aa7d6aada3 fix log streaming 2020-09-20 15:11:08 +03:00
Asim Aslam
7e8f3ef103 don't panic on nil 2020-09-20 15:11:08 +03:00
Milos Gajdos
83d0560d23 Fixing dead code and go vet moaning 2020-09-20 15:11:08 +03:00
Joe
dfffa16590 grpc: using jsonpb.Marshaler to do Marshal, map to jsonpb.Unmarsh 2020-09-20 15:11:08 +03:00
f60b239b67 codec grpc: fix extra allocations on message unmarshal
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-09-20 15:11:08 +03:00
Joe
d4d579bd5a if unmarshal target is proto.Message, using jsonpb 2020-09-20 15:11:08 +03:00
Asim Aslam
4651f11492 Add working grpc proxy config 2020-09-20 15:11:08 +03:00
Asim Aslam
ac860f37e2 add cruft 2020-09-20 15:11:08 +03:00
Asim Aslam
8a3538eb77 Further consolidate the libraries 2020-09-20 15:11:08 +03:00