mirror of
https://github.com/go-micro/go-micro.git
synced 2024-12-06 08:16:03 +02:00
Merge pull request #487 from lpxxn/master
fix streamming error io.ErrUnexpectedEOF
This commit is contained in:
commit
e035664a8c
@ -157,7 +157,6 @@ func (s *rpcServer) ServeConn(sock transport.Socket) {
|
||||
|
||||
// TODO: handle error better
|
||||
if err := handler(ctx, request, response); err != nil {
|
||||
if err != lastStreamResponseError {
|
||||
// write an error response
|
||||
err = rcodec.Write(&codec.Message{
|
||||
Header: msg.Header,
|
||||
@ -168,7 +167,6 @@ func (s *rpcServer) ServeConn(sock transport.Socket) {
|
||||
if err != nil {
|
||||
log.Logf("rpc: unable to write error response: %v", err)
|
||||
}
|
||||
}
|
||||
s.wg.Done()
|
||||
return
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user