[
https://issues.apache.org/jira/browse/THRIFT-567?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Bryan Duxbury closed THRIFT-567.
--------------------------------
Assignee: Rush Manbert
Fix Version/s: 0.5
Resolution: Fixed
I just committed this.
> Can't immediately stop a TSimpleServer thread that is idle
> ----------------------------------------------------------
>
> Key: THRIFT-567
> URL: https://issues.apache.org/jira/browse/THRIFT-567
> Project: Thrift
> Issue Type: Bug
> Components: C++ - Library
> Affects Versions: 0.1
> Environment: Mac OS X 10.5.8
> Reporter: Rush Manbert
> Assignee: Rush Manbert
> Fix For: 0.5
>
> Attachments: TSimpleServerPatchJira567.txt
>
>
> Given the following conditions:
> 1) TSimpleServer running in its own thread
> 2) Server is idle (no clients connected)
> If TSimpleServer::stop() is called, the server thread will not be stopped
> until the next client transaction occurs. You can't stop an idle server
> immediately.
> I think the fix is to have TSimpleServer::stop() call
> serverTransport_->interrupt(), just like the TThreadedServer does.
> I'll submit a patch shortly.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.