[
https://issues.apache.org/jira/browse/THRIFT-149?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13223159#comment-13223159
]
Inder SIngh commented on THRIFT-149:
------------------------------------
Is thrift 0.8 having support for this?
> TNonBlockingServer graceful shutdown
> ------------------------------------
>
> Key: THRIFT-149
> URL: https://issues.apache.org/jira/browse/THRIFT-149
> Project: Thrift
> Issue Type: Improvement
> Components: C++ - Library
> Reporter: Erik Frey
> Priority: Minor
> Attachments: nonblocking_graceful_shutdown.patch
>
>
> There doesn't seem to be a way to gracefully shutdown TNonBlockingServer -
> this patch is a start. It allows TNonBlockingServer to gracefully handle a
> ThreadManager that's being stopped (and finishing up its workers) -- if it
> catches an IllegalStateException when it tries to add a task, it simply
> closes the connection.
> This allows the server implementor to stop the thread manager first, then
> dismantle the rest of the server. Clients that made it through before the
> thread manager was stopped receive a response, and clients after receive an
> abruptly closed connection.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira