File tree Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 1
- # eRPC [ ![ GitHub release] ( https://img.shields.io/github/release/henrylee2cn/erpc.svg?style=flat-square )] ( https://github.com/henrylee2cn/erpc/releases ) [ ![ report card] ( https://goreportcard.com/badge/github.com/henrylee2cn/erpc?style=flat-square )] ( http://goreportcard.com/report/henrylee2cn/erpc ) [ ![ github issues] ( https://img.shields.io/github/issues/henrylee2cn/erpc.svg?style=flat-square )] ( https://github.com/henrylee2cn/erpc/issues?q=is%3Aopen+is%3Aissue ) [ ![ github closed issues] ( https://img.shields.io/github/issues-closed-raw/henrylee2cn/erpc.svg?style=flat-square )] ( https://github.com/henrylee2cn/erpc/issues?q=is%3Aissue+is%3Aclosed ) [ ![ GoDoc] ( https://img.shields.io/badge/godoc -reference-blue.svg?style=flat-square )] ( http ://godoc.org /github.com/henrylee2cn/erpc) [ ![ view examples] ( https://img.shields.io/badge/learn%20by-examples-00BCD4.svg?style=flat-square )] ( https://github.com/henrylee2cn/erpc/tree/master/examples )
1
+ # eRPC [ ![ GitHub release] ( https://img.shields.io/github/release/henrylee2cn/erpc.svg?style=flat-square )] ( https://github.com/henrylee2cn/erpc/releases ) [ ![ report card] ( https://goreportcard.com/badge/github.com/henrylee2cn/erpc?style=flat-square )] ( http://goreportcard.com/report/henrylee2cn/erpc ) [ ![ github issues] ( https://img.shields.io/github/issues/henrylee2cn/erpc.svg?style=flat-square )] ( https://github.com/henrylee2cn/erpc/issues?q=is%3Aopen+is%3Aissue ) [ ![ github closed issues] ( https://img.shields.io/github/issues-closed-raw/henrylee2cn/erpc.svg?style=flat-square )] ( https://github.com/henrylee2cn/erpc/issues?q=is%3Aissue+is%3Aclosed ) [ ![ GoDoc] ( https://img.shields.io/badge/go.dev -reference-blue.svg?logo=go&logoColor=white& style=flat-square )] ( https ://pkg.go.dev /github.com/henrylee2cn/erpc?tab=doc ) [ ![ view examples] ( https://img.shields.io/badge/learn%20by-examples-00BCD4.svg?style=flat-square )] ( https://github.com/henrylee2cn/erpc/tree/master/examples )
2
2
<!-- [-27a5ea.svg?style=flat-square)](http://jq.qq.com/?_wv=1027&k=fzi4p1) -->
3
3
4
4
eRPC is an efficient, extensible and easy-to-use RPC framework.
Original file line number Diff line number Diff line change 1
- # eRPC [ ![ GitHub release] ( https://img.shields.io/github/release/henrylee2cn/erpc.svg?style=flat-square )] ( https://github.com/henrylee2cn/erpc/releases ) [ ![ report card] ( https://goreportcard.com/badge/github.com/henrylee2cn/erpc?style=flat-square )] ( http://goreportcard.com/report/henrylee2cn/erpc ) [ ![ github issues] ( https://img.shields.io/github/issues/henrylee2cn/erpc.svg?style=flat-square )] ( https://github.com/henrylee2cn/erpc/issues?q=is%3Aopen+is%3Aissue ) [ ![ github closed issues] ( https://img.shields.io/github/issues-closed-raw/henrylee2cn/erpc.svg?style=flat-square )] ( https://github.com/henrylee2cn/erpc/issues?q=is%3Aissue+is%3Aclosed ) [ ![ GoDoc] ( https://img.shields.io/badge/godoc -reference-blue.svg?style=flat-square )] ( http ://godoc.org /github.com/henrylee2cn/erpc) [ ![ view examples] ( https://img.shields.io/badge/learn%20by-examples-00BCD4.svg?style=flat-square )] ( https://github.com/henrylee2cn/erpc/tree/master/examples )
2
- <!-- [-27a5ea.svg?style=flat-square)](http://jq.qq.com/?_wv=1027&k=fzi4p1) -->
1
+ # eRPC [ ![ GitHub release] ( https://img.shields.io/github/release/henrylee2cn/erpc.svg?style=flat-square )] ( https://github.com/henrylee2cn/erpc/releases ) [ ![ report card] ( https://goreportcard.com/badge/github.com/henrylee2cn/erpc?style=flat-square )] ( http://goreportcard.com/report/henrylee2cn/erpc ) [ ![ github issues] ( https://img.shields.io/github/issues/henrylee2cn/erpc.svg?style=flat-square )] ( https://github.com/henrylee2cn/erpc/issues?q=is%3Aopen+is%3Aissue ) [ ![ github closed issues] ( https://img.shields.io/github/issues-closed-raw/henrylee2cn/erpc.svg?style=flat-square )] ( https://github.com/henrylee2cn/erpc/issues?q=is%3Aissue+is%3Aclosed ) [ ![ GoDoc] ( https://img.shields.io/badge/go.dev -reference-blue.svg?logo=go&logoColor=white& style=flat-square )] ( https ://pkg.go.dev /github.com/henrylee2cn/erpc?tab=doc ) [ ![ view examples] ( https://img.shields.io/badge/learn%20by-examples-00BCD4.svg?style=flat-square )] ( https://github.com/henrylee2cn/erpc/tree/master/examples )
2
+ [ ![ view Go网络编程群] ( https://img.shields.io/badge/官方QQ群-Go网络编程(42730308)-27a5ea.svg?style=flat-square )] ( http://jq.qq.com/?_wv=1027&k=fzi4p1 )
3
3
4
4
5
5
eRPC 是一个高效、可扩展且简单易用的 RPC 框架。
Original file line number Diff line number Diff line change 1
1
module github.com/henrylee2cn/erpc/v6
2
2
3
+ go 1.14
4
+
3
5
require (
4
6
git.apache.org/thrift.git v0.13.0
5
7
github.com/gogo/protobuf v1.2.1
6
8
github.com/golang/protobuf v1.3.1
7
9
github.com/henrylee2cn/cfgo v0.0.0-20180417024816-e6c3cc325b21
8
10
github.com/henrylee2cn/goutil v0.0.0-20200416032639-974f5b4094a2
9
11
github.com/kavu/go_reuseport v1.4.0 // indirect
10
- github.com/lucas-clemente/quic-go v0.13.1
12
+ github.com/lucas-clemente/quic-go v0.15.5
11
13
github.com/montanaflynn/stats v0.5.0
12
14
github.com/stretchr/testify v1.4.0
13
15
github.com/tidwall/evio v1.0.7
14
16
github.com/tidwall/gjson v1.2.2
15
17
github.com/xtaci/kcp-go/v5 v5.5.12
16
- golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8
18
+ golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae
17
19
)
18
-
19
- go 1.13
Original file line number Diff line number Diff line change @@ -158,10 +158,10 @@ func (c *Conn) Write(b []byte) (n int, err error) {
158
158
func (c * Conn ) Close () error {
159
159
err := c .stream .Close ()
160
160
if err != nil {
161
- c .sess .Close ( )
161
+ c .sess .CloseWithError ( 1 , err . Error () )
162
162
return err
163
163
}
164
- return c .sess .Close ( )
164
+ return c .sess .CloseWithError ( 0 , "" )
165
165
}
166
166
167
167
// LocalAddr returns the local network address.
You can’t perform that action at this time.
0 commit comments