Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-4659

golang race detected when closing listener socket

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.11.0
    • 0.12.0
    • Go - Library
    • None

    Description

      Race condition is deteced for following write/read

       

      git.apache.org/thrift.git/lib/go/thrift/server_socket.go:119

      git.apache.org/thrift.git/lib/go/thrift.(*TServerSocket).Close()

      git.apache.org/thrift.git/lib/go/thrift/server_socket.go:122

      git.apache.org/thrift.git/lib/go/thrift.(*TServerSocket).Interrupt()

       

      git.apache.org/thrift.git/lib/go/thrift.(*TServerSocket).Accept()

      git.apache.org/thrift.git/lib/go/thrift/server_socket.go:78

      git.apache.org/thrift.git/lib/go/thrift.(*TSimpleServer).innerAccept()

      git.apache.org/thrift.git/lib/go/thrift/simple_server.go:129

      git.apache.org/thrift.git/lib/go/thrift.(*TSimpleServer).AcceptLoop()

      Attachments

        1. THRIFT-4659.diff
          1 kB
          Jay Gheewala

        Issue Links

          Activity

            People

              dcelasun Duru Can Celasun
              jgheewala_signalfx Jay Gheewala
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: