From d5f503344e845ee9cb235891796128e8a2dc5a49 Mon Sep 17 00:00:00 2001 From: JodeZer Date: Thu, 16 Mar 2017 11:52:18 +0800 Subject: [PATCH] THRIFT-3959 explain simpleServer is not a typical TSimpleServer --- lib/go/thrift/simple_server.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/go/thrift/simple_server.go b/lib/go/thrift/simple_server.go index 4097c4aeae9..486a4232cf9 100644 --- a/lib/go/thrift/simple_server.go +++ b/lib/go/thrift/simple_server.go @@ -25,6 +25,11 @@ import ( "sync" ) +/* +This is not a typical TSimpleServer as it's not blocked after accept a socket. +It's more like a Thread model server that can handle different connections in different goroutines. +This will work if golang user implements a conn-pool like thing in client side. +*/ // Simple, non-concurrent server for testing. type TSimpleServer struct { quit chan struct{}