Commit Graph

71 Commits

Author SHA1 Message Date
Asim Aslam
f1984650f4 use the request header 2018-11-22 10:39:36 +00:00
Asim Aslam
d9fc2c922d update package comment 2018-11-18 18:38:46 +00:00
Asim Aslam
1d8047a272 add option to set http handlers 2018-11-18 16:32:53 +00:00
Asim Aslam
881cb570d5 reorder 2018-11-14 19:49:04 +00:00
Asim Aslam
71bacf6991 add local/remote ip to socket 2018-11-14 19:41:13 +00:00
Asim Aslam
54f67db275
Merge pull request #289 from micro/http2
http2 support
2018-11-03 12:07:23 +00:00
Asim Aslam
9968c7d007 Add Init to all things, use init in cmd package to initialise 2018-08-08 18:57:29 +01:00
Asim Aslam
eebaa64d8c phase 1 2018-07-29 10:55:46 +01:00
Asim Aslam
d00ac200dd remove registry and transport default funcs 2018-04-14 18:43:54 +01:00
Asim Aslam
e55437698b misc moved to util 2018-04-08 12:37:45 +01:00
Asim Aslam
c9b40cb33b switch to stdlib context 2018-03-03 11:53:52 +00:00
Asim Aslam
043e4aa979 please stack overflow 2017-11-03 17:30:16 +00:00
Asim Aslam
a7312f5c7e log panics 2017-05-16 19:14:00 +01:00
Asim Aslam
bab586b71e make use of micro/go-log 2017-05-11 20:43:42 +01:00
Asim Aslam
66ef6b67ca add support for port range in http broker 2017-01-12 14:11:25 +00:00
Asim Aslam
a47d916b50 move ip func 2017-01-12 13:52:49 +00:00
Asim Aslam
71d717a06d strip doc.go files 2016-12-14 15:41:48 +00:00
Asim Aslam
49e5636bcd add transport codec 2016-12-06 18:56:57 +00:00
Asim
7868d5a2cb Use Socket in the Client interface 2016-11-05 11:44:02 +00:00
Asim
1b1fb71e44 move function 2016-10-29 21:34:15 +01:00
Asim
6d35a663a4 Don't create new message 2016-10-29 21:33:04 +01:00
Asim
66c38b75aa Name timeout rather than deadline 2016-08-01 16:31:27 +01:00
Asim
9d08a7955d add deadline test 2016-07-29 15:30:51 +01:00
Asim
e7903c65ce use deadline within http transport 2016-07-28 19:12:56 +01:00
Asim
5b034ba253 Add deadline option 2016-07-28 18:38:17 +01:00
Asim
69aa8537d3 Add some comments 2016-06-06 14:05:02 +01:00
Zeal
d8ecd42868 rename getIPAddrList() to getIPAddrs and improve code format 2016-06-06 20:56:53 +08:00
Zeal
eb0422cee1 improve self-signed host list 2016-06-05 23:13:29 +08:00
Asim
34365812d8 Fix double close 2016-06-03 11:08:58 +01:00
Asim
702072f177 Make mock listen on random port if 0 is specified 2016-06-01 15:22:27 +01:00
Asim
1254a87286 Add package comments 2016-05-24 22:22:46 +01:00
Asim
a0a4ab4c15 Don't throw fatal on EOF 2016-05-10 11:23:30 +01:00
Asim
07687b9595 Since we send 200 response from the Listener, we should expect 200 response from the Client 2016-05-06 15:44:32 +01:00
Asim
3d3044404e Don't add to defaults in func init, just add them to cmd 2016-04-26 18:49:02 +01:00
Asim
bfe20d81d0 More linting fun 2016-04-06 18:03:27 +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
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
5a6ff655db Transport init 2016-03-15 22:25:32 +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
71764564e7 Add packages for the defaults 2016-03-14 10:45:38 +00:00
Jelmer Snoeck
0cf396756c Implement tests for the port range. 2016-03-02 15:54:20 +00:00
Asim
4ef44db161 Internally handle port range 2016-03-02 14:20:28 +00:00
Asim
9f0dd3dc8c Add transport comment 2016-01-30 21:19:55 +00:00
Asim
a1c22ce78a Add transport tls 2016-01-18 00:10:04 +00:00
Asim
48798027d0 Move options over 2016-01-17 00:28:57 +00:00