[ 
https://issues.apache.org/jira/browse/THRIFT-149?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13676934#comment-13676934
 ] 

Carl Yeksigian commented on THRIFT-149:
---------------------------------------

Since the patch has been included, I'm closing this issue. If there is anything 
else that should be done for this issue, please open a new ticket.
                
> 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
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to