Describe the bug
svrTransHandler.OnError will be called twice when some error occured in svrTransHandler.OnRead

the first at
|
t.OnError(ctx, err, conn) |
the second at
|
ts.onError(ctx, err, conn) |
so i can see the same log

To Reproduce
package main
import (
"context"
"log"
"github.com/cloudwego/kitex-examples/hello/kitex_gen/api/hello"
"github.com/cloudwego/kitex/client"
)
//client
func main() {
client, err := hello.NewClient("hello", client.WithHostPorts("0.0.0.0:8888"))
if err != nil {
log.Fatal(err)
}
resp, err := client.Echo(context.Background(), nil)
if err != nil {
log.Fatal(err)
}
log.Println(resp)
}
//server
import (
"log"
api "github.com/cloudwego/kitex-examples/hello/kitex_gen/api/hello"
)
func main() {
svr := api.NewServer(new(HelloImpl))
err := svr.Run()
if err != nil {
log.Println(err.Error())
}
}
Expected behavior
should be called only once?
Screenshots
If applicable, add screenshots to help explain your problem.
Kitex version:
V0.7.3
Environment:
The output of go env.
Additional context
Add any other context about the problem here.
Describe the bug

svrTransHandler.OnError will be called twice when some error occured in svrTransHandler.OnRead
the first at
kitex/pkg/remote/trans/default_server_handler.go
Line 175 in 4e44114
the second at
kitex/pkg/remote/trans/netpoll/trans_server.go
Line 159 in 4e44114
so i can see the same log

To Reproduce
Expected behavior
should be called only once?
Screenshots
If applicable, add screenshots to help explain your problem.
Kitex version:
V0.7.3
Environment:
The output of
go env.Additional context
Add any other context about the problem here.