From e28f5b97f66be1b8a797c96a20de8c3ef642ca1a Mon Sep 17 00:00:00 2001 From: Asim Aslam Date: Wed, 20 Jul 2022 10:34:27 +0100 Subject: [PATCH 1/2] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index e848e62c..77446bd0 100644 --- a/README.md +++ b/README.md @@ -75,6 +75,7 @@ See the [examples](https://github.com/go-micro/examples) for detailed informatio See [github.com/go-micro](https://github.com/go-micro) for tooling. +- [API](https://github.com/go-micro/api) - [CLI](https://github.com/go-micro/cli) - [Demo](https://github.com/go-micro/demo) - [Plugins](https://github.com/go-micro/plugins) From 48eae3b9683fe0f0f40e2f287fc24402df698bb8 Mon Sep 17 00:00:00 2001 From: Ak-Army Date: Fri, 22 Jul 2022 09:40:58 +0200 Subject: [PATCH 2/2] Fix http transport panic (#2531) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [fix] etcd config source prefix issue (#2389) * http transport data race issue (#2436) * [fix] #2431 http transport data race issue * [feature] Ability to close connection while receiving. Ability to send messages while receiving. Icreased r channel limit to 100 to more fluently communication. Do not dropp sent request if r channel is full. * [fix] Read buff before reset it, when the connection is closed Co-authored-by: Johnson C Co-authored-by: Hunyadvári Péter --- transport/http_transport.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/transport/http_transport.go b/transport/http_transport.go index def8a49e..0585fb02 100644 --- a/transport/http_transport.go +++ b/transport/http_transport.go @@ -153,12 +153,11 @@ func (h *httpTransportClient) Recv(m *Message) error { } h.Lock() + defer h.Unlock() if h.closed { - h.Unlock() return io.EOF } rsp, err := http.ReadResponse(h.buff, r) - h.Unlock() if err != nil { return err }