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

ASF GitHub Bot commented on THRIFT-3855:
----------------------------------------

Github user jeking3 commented on a diff in the pull request:

    https://github.com/apache/thrift/pull/1028#discussion_r67457396
  
    --- Diff: lib/go/thrift/simple_server.go ---
    @@ -149,8 +151,10 @@ func (p *TSimpleServer) Serve() error {
     }
     
     func (p *TSimpleServer) Stop() error {
    -   p.quit <- struct{}{}
    -   p.serverTransport.Interrupt()
    +   if atomic.CompareAndSwapInt64(&p.stopped, 0, 1) {
    --- End diff --
    
    I created a Jira item for your issue:
    
    https://issues.apache.org/jira/browse/THRIFT-3855



> In the go simple server, if Stop() is called multiple times it hangs
> --------------------------------------------------------------------
>
>                 Key: THRIFT-3855
>                 URL: https://issues.apache.org/jira/browse/THRIFT-3855
>             Project: Thrift
>          Issue Type: Bug
>          Components: Go - Library
>    Affects Versions: 0.9.3
>            Reporter: James E. King, III
>
> From the submitter huaiwan:
> {quote}
> huaiyun commented 18 hours ago
> When Stop() is called twice or more, and no new connection accepted from 
> AcceptLoop(), the Stop() will be blocked because the quit channel is full.
> {quote}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to