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

Allowing use of buffered sockets in go server

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.9.2
    • Component/s: Go - Library
    • Labels:
      None
    • Patch Info:
      Patch Available

      Description

      There is currently no way in a go server to use buffered sockets. Failing to do so decreases performance significantly in my tests.

      I added an option on TServerSocket to set the buffer size to use. This will default to 1024 bytes, but can be disabled if desired to get back to the original behavior by setting BufferSize to 0.

      Github pull request: https://github.com/apache/thrift/pull/249
      Patch https://github.com/apache/thrift/pull/249.patch

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jensg Jens Geyer
                Reporter:
                captncraig Craig Peterson
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: