THRIFT-3931 TSimpleServer: If process request encounter UNKNOWN_METHOD, don't close transport.
Client: Go
Patch: zhangxin <xin.zhangwebapi@ele.me>
This closes #1090
diff --git a/lib/go/thrift/simple_server.go b/lib/go/thrift/simple_server.go
index 6b3811e..8c56a4f 100644
--- a/lib/go/thrift/simple_server.go
+++ b/lib/go/thrift/simple_server.go
@@ -183,6 +183,9 @@
log.Printf("error processing request: %s", err)
return err
}
+ if err, ok := err.(TApplicationException); ok && err.TypeId() == UNKNOWN_METHOD {
+ continue
+ }
if !ok {
break
}