You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Rush Manbert (JIRA)" <ji...@apache.org> on 2009/08/20 21:54:14 UTC

[jira] Updated: (THRIFT-567) Can't immediately stop a TSimpleServer thread that is idle

     [ https://issues.apache.org/jira/browse/THRIFT-567?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rush Manbert updated THRIFT-567:
--------------------------------

    Attachment: TSimpleServerPatchJira567.txt

Patch file.

> 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: Library (C++)
>    Affects Versions: 0.1
>         Environment: Mac OS X 10.5.8
>            Reporter: Rush Manbert
>         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.