6248f05f74
add missing option to client.NewMessage ( #1212 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-02-18 14:18:59 +03:00
ben-toogood
1e40c86dfe
Ignore gRPC Proxy ( #1205 )
2020-02-17 08:14:45 +00:00
Asim Aslam
b3fc8be24e
normalise proxy name ( #1203 )
2020-02-15 21:57:30 +00:00
Asim Aslam
c691d116ab
when the stream errors cleanup the connection ( #1199 )
2020-02-15 11:35:08 +00:00
Asim Aslam
d9b3b17582
set dial timeout in stream
2020-02-13 18:51:32 +00:00
6dc942bc19
client/grpc: fix panic on invalid message ( #1191 )
...
* client/grpc: fix panic on invalid message
* travis: disable lint and race for now
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-02-13 14:57:21 +03:00
99807a680c
strip Micro-Topic header from incoming context in client.Call ( #1177 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-02-07 22:09:52 +00:00
7105e4099c
pass micro errors from grpc server to grpc client ( #1167 )
...
* pass micro errors from grpc server to grpc client
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* wrap micro errors.Error to grpc status
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-02-06 10:18:33 +00:00
a44dc90d45
fix ctx.Done issue #720 ( #1166 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-02-05 21:13:14 +00:00
tpam28
449bcb46fe
New backoff ( #1153 )
...
* new backoff function
* use backoff from util/backoff
* remove reset atemts
* change comment
* fmt
2020-02-02 20:32:55 +00:00
Evgeniy
87753ad289
format results in TestBacloff
2020-01-30 20:08:03 +03:00
Evgeniy
ffb9da0230
fix test and description
2020-01-30 19:43:03 +03:00
Evgeniy
f6fcfcb8fc
exponentialBackoff was changed from power function to exponential function
2020-01-30 17:25:07 +03: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
2b1844971c
go fmt
2020-01-24 21:31:57 +00:00
Asim Aslam
9df19e826e
cancel stream
2020-01-19 22:53:56 +00:00
Asim Aslam
54fb61bba4
Move proto to service/
2020-01-19 17:31:24 +00:00
Asim Aslam
fac75866d9
Move pool to util
2020-01-19 17:30:49 +00:00
Asim Aslam
a47ff65529
remove mock client
2020-01-19 17:24:22 +00:00
Asim Aslam
0a37767127
Fix service registration with registry service
2020-01-18 19:53:51 +00:00
Maarten Bezemer
50b20413d3
RPC stream client/server mutex fix ( #884 )
...
* Unlock RPC client while actually receiving a message
As receiving a message might block for a long time, unblocking the client allows to let it send messages in the meanwhile without using 'tricks'
* Unlock RPC server while actually receiving a message
As receiving a message might block for a long time, unblocking the client allows to let it send messages in the meanwhile without using 'tricks'
* Protect Close() against race conditions
* Concurrency and Sequence tests
2020-01-12 09:13:14 +00:00
Asim Aslam
37d1139a57
ensure we close the grpc stream ( #1098 )
...
* ensure we close the grpc stream
* use g.Close
* use closed bool flag for checking connection close
2020-01-09 17:00:14 +00:00
Asim Aslam
0b8ff3a8bb
fix grpc json streaming by setting content sub type ( #1089 )
2020-01-07 18:37:34 +00:00
Asim Aslam
45c986c5f1
don't marshal frame values
2019-12-31 21:36:22 +00:00
Asim Aslam
c145f355dd
Moving to gRPC by default ( #1069 )
...
* Step 1
* Fix the test panics
2019-12-29 21:07:55 +00:00
jamsonzan
22aa7d14b3
support streams pool for grpc ( #1062 )
...
* Update grpc_pool.go
* Update options.go
* Update grpc.go
* Update grpc_pool_test.go
* streams pool for grpc
* use busy list to speed up allocate while pool is very busy
* fix idle bug
2019-12-27 12:25:58 +00:00
Asim Aslam
d5951f1d7c
Merge pull request #1042 from ZGeomantic/feat-client-mock
...
support ctx as input params, error as output for MockClient.Call
2019-12-15 15:12:17 +00:00
jamsonzan
572fe58314
comment
2019-12-15 15:05:19 +08:00
gemantic
5602b93d7a
support ctx as input params, error as output for MockClient.Call
2019-12-14 10:36:12 +08:00
Asim Aslam
d50f30d743
strip handlers
2019-12-10 11:46:13 +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
Milos Gajdos
5865e89bed
Fixing dead code and go vet moaning
2019-12-05 16:10:49 +00:00
a1eaf9cc20
linting fixes
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2019-12-04 00:22:02 +03:00
Astone
29fb58db39
improve code quality
2019-12-03 20:59:02 +08:00
90f9b0d0c9
initialize client options context if not provided
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2019-12-03 01:35:59 +03:00
Asim Aslam
00bbb3ac61
revert some protocol changes for now
2019-11-30 21:20:33 +00:00
Asim Aslam
8b63df7a98
regenerate the protos
2019-11-26 13:53:33 +00:00
Asim Aslam
db03a564fb
Merge pull request #980 from unistack-org/issue-940
...
grpc client goroutine leak fix
2019-11-25 19:10:34 +00:00
9763820c75
grpc client goroutine leak fix
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2019-11-25 22:02:24 +03:00
Asim Aslam
080363e8c4
The mega cruft proxy PR ( #974 )
...
* the mega cruft proxy PR
* Rename broker id
* add protocol=grpc
* fix compilation breaks
* Add the tunnel broker to the network
* fix broker id
* continue to be backwards compatible in the protocol
2019-11-25 16:31:43 +00:00
Erik Hollensbe
4107733453
Memory registry from #801 with additional tweaks ( #951 )
...
* PoC: memory registry using maps instead of slice madness
* Updated proto and handlers. Fixed tests across codebase.
* Implemented ttl pruning for memory registry
* Added extensive memory registry tests
* Squased a bunch of bugs
* Proto indent; memory.Registry.String() returns "memory"
* Write a test to prove memory registry TTLs are busted
Signed-off-by: Erik Hollensbe <github@hollensbe.org>
* Additional memory testing and fixups:
* DefaultTTL removed
* When TTL == 0, it is automatically removed from expiry conditions
* Additional improvements to new tests
Signed-off-by: Erik Hollensbe <github@hollensbe.org>
2019-11-16 10:55:11 +00:00
Till Knuesting
f67c5e779f
preallocated slices ( #917 )
2019-11-05 17:43:12 +00:00
tegk
f88518d994
used gofmt with -s flag on whole project
2019-11-01 15:07:53 +00:00
Milos Gajdos
1ff65e140a
Change router.Route metric to int64. Set the route metric properly
2019-10-23 16:51:22 +01:00
Asim Aslam
b55018eaa1
Merge pull request #833 from orbli/patch-1
...
Add dialoptions and calloptions
2019-10-10 07:40:48 +01:00
orb li
77108771db
Conceptual deliverable
2019-10-10 13:55:16 +08:00
Asim Aslam
fe94237448
Update router querying method ( #834 )
...
* Add address to router query options. Drop Query interface for QueryOptions
* Cleanup isMatch function
* Update network proto
2019-10-09 17:13:52 +01:00
orb li
226d55d752
Adding dependency
2019-10-09 16:48:45 +08:00
orb li
88ef785127
Add dialoptions and calloptions
2019-10-09 15:56:39 +08:00
Asim Aslam
afa1f50435
Revert to creating new connections for stream
2019-09-25 15:21:21 +01:00