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


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.

Reply via email to