Commit Graph

1529 Commits

Author SHA1 Message Date
Asim
ac6b8b730b First stab at mock client 2016-04-06 18:33:57 +01:00
Asim
bfe20d81d0 More linting fun 2016-04-06 18:03:27 +01:00
Asim
2f50c74f41 Satisfy the golint gods a little 2016-04-06 17:53:16 +01:00
Asim Aslam
5fb1051e0b Merge pull request #70 from micro/backoff
Add Backoff func option
2016-04-06 17:43:39 +01:00
Asim
7167f998ce First crack at backoff function 2016-04-05 20:04:37 +01:00
Asim
56c6993eb8 Set CallOptions as struct in Options. Can then be overridden easily during Call/Stream 2016-04-05 18:07:07 +01:00
Asim Aslam
c462d7776c Merge pull request #63 from micro/encoding
Fix Consul WARN issues for tags
2016-04-05 16:14:28 +01:00
Asim Aslam
de2f407e3d Merge pull request #69 from jelmersnoeck/fix-accept-return
HTTPTransport: implement queue for listener.
2016-04-01 13:39:38 +01:00
Jelmer Snoeck
af0028d821 HTTPTransport: implement queue for listener.
Before this patch, when an error occurs in trying to accept a connection
from the listener, the error would be returned. This also happened on
temporary issues like `too many open files`.

Temporary issues are "self-healing" and will resolve over time. This
means that we can put the requests in a queue to wait until the issue is
resolved and start processing the connections once it is resolved.

This patch implements such mechanism, as copied from the standard
library http package. It will retry temporary errors but will return
permanent errors (or errors that are not from the net.Error type).
2016-04-01 13:10:18 +01:00
Asim Aslam
ce283ab233 Merge pull request #68 from boyand/master
Avoid unsafe dereferencing
2016-04-01 09:42:17 +01:00
Boyan Dimitrov
5718ce5697 Avoid unsafe dereferencing 2016-04-01 10:28:52 +02:00
Asim
17a97e2ef1 Set ver 2016-03-29 18:32:16 +01:00
Asim
cb89b2ebca update encoding test 2016-03-29 18:16:55 +01:00
Asim
61178d1b45 Update encoding to be backwards compatible. 2016-03-29 17:44:46 +01:00
Asim
844979be06 Add flags client request timeout and client retries 2016-03-29 17:18:39 +01:00
Asim
2c2edcad2f Update go versions 2016-03-23 18:34:20 +00:00
Asim
97860a0488 Fix duplicate registraton of sub handler 2016-03-22 18:02:50 +00:00
Asim
f10935ad2e http bench test 2016-03-19 15:29:04 +00:00
Asim
646d80f222 That should be a listener exit 2016-03-18 19:24:44 +00:00
Asim
10a67fe7de Ugly comments, fix them 2016-03-18 19:23:44 +00:00
Asim
da22d5b161 Mock transport 2016-03-18 18:41:26 +00:00
Asim
dcb3fad476 Add error test 2016-03-18 11:01:55 +00:00
Asim
31f67317e9 Add apache license icon 2016-03-18 09:29:09 +00:00
Asim
0a81cb1190 unexport mock registry 2016-03-17 22:54:18 +00:00
Asim
01a642410f We don't need to export those things 2016-03-17 22:52:49 +00:00
Asim
771ff7fbff Add mock broker 2016-03-17 22:46:20 +00:00
Asim
e941796234 Add encoding that does not throw warns 2016-03-16 21:23:41 +00:00
Asim
7126dc1238 Merge pull request #60 from micro/init
Strip string slice from New[Thing] for addrs
2016-03-16 10:05:57 +00:00
Asim
5a6ff655db Transport init 2016-03-15 22:25:32 +00:00
Asim
f088074f29 Registry init 2016-03-15 22:20:21 +00:00
Asim
64220dc0c5 Broker init 2016-03-15 22:12:28 +00:00
Asim
fe4362be5a Merge pull request #57 from micro/log
remove use of glog
2016-03-15 20:56:11 +00:00
Asim
46da892e5f Remove glog from example too 2016-03-15 20:48:09 +00:00
Asim
c48f711aab Merge pull request #59 from micro/tests
Tests round 2
2016-03-14 21:56:38 +00:00
Asim
1f8003b6ac extractor tests 2016-03-14 20:09:07 +00:00
Asim
1ef58d63d4 Merge pull request #58 from micro/tests
Tests
2016-03-14 19:50:53 +00:00
Asim
f8fcb74f79 broker test 2016-03-14 19:37:51 +00:00
Asim
15db053bc6 update mock tests 2016-03-14 19:15:42 +00:00
Asim
bbcbd2a446 Basic metadata retrieval test 2016-03-14 18:32:08 +00:00
Asim
fe1fde8c59 go 1.4 doesn't like closed connection, check we closed the listener 2016-03-14 18:20:38 +00:00
Asim
77177508ce Don't bother closing the socket 2016-03-14 17:57:49 +00:00
Asim
6028c2f9e8 Add transport comms tests 2016-03-14 17:50:18 +00:00
Asim
4da744ebde Add goreport 2016-03-14 17:50:03 +00:00
Asim
ee8b3c8e52 Merge pull request #56 from micro/defaults
Add packages for the defaults
2016-03-14 15:44:14 +00:00
Asim
d1eae8fabe remove use of glog 2016-03-14 11:01:10 +00:00
Asim
71764564e7 Add packages for the defaults 2016-03-14 10:45:38 +00:00
Asim
c0b25e7a65 Add contributing section 2016-03-12 21:25:46 +00:00
Asim
3662cd4e49 Fix that comment 2016-03-12 00:10:40 +00:00
Asim
f03afb9343 Add final comment 2016-03-12 00:07:14 +00:00
Asim
ddf68ed23b Add a few more comments 2016-03-12 00:04:33 +00:00