buptubuntu commented on pull request #2497: URL: https://github.com/apache/thrift/pull/2497#issuecomment-1011599861
> > I don't know what's the best way to fix that. Maybe add a setting to `TSimpleServer` to sleep for a period of time before trying to abruptly close all connections is a ok short term solution. for long term we might need to make some breaking changes to `TProtocol`/`TTransport` to add the graceful shutdown semantic to them. > > the key is to prevent the server to hang for too long or hang for ever,because that will block in some pipeline inside a process.As the listener is closed, new client can not connect to ther server(imaging a standal > for the error rate, from the server's pov,the client may also close abruptly to cause server error. Maybe we can add func called **CloseImmediatly** for user to choice -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
