thrift-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kyle Smith (JIRA)" <j...@apache.org>
Subject [jira] [Created] (THRIFT-4821) Normalize TServerSocketTransport constructors in netstd
Date Wed, 13 Mar 2019 12:46:00 GMT
Kyle Smith created THRIFT-4821:
----------------------------------

             Summary: Normalize TServerSocketTransport constructors in netstd
                 Key: THRIFT-4821
                 URL: https://issues.apache.org/jira/browse/THRIFT-4821
             Project: Thrift
          Issue Type: Improvement
          Components: netstd - Library
    Affects Versions: 0.12.0
            Reporter: Kyle Smith


Right now you are not able to utilize the built-in buffered or framed transport features of
the current TServerSocketTransport class if you need to pass in your own TcpListener. This
could be resolved by creating just two constructors using default values to replace the current
six.

{{{color:#569cd6}public{color} TServerSocketTransport({color:#4ec9b0}TcpListener{color} listener, {color:#569cd6}int{color} clientTimeout {color:#b4b4b4}={color} {color:#b5cea8}0{color}, {color:#569cd6}bool{color} useBufferedSockets {color:#b4b4b4}={color} {color:#569cd6}false{color}, {color:#569cd6}bool{color} useFramedTransport {color:#b4b4b4}={color} {color:#569cd6}false{color})
}}{{{color:#569cd6}public{color} TServerSocketTransport({color:#569cd6}int{color} port, {color:#569cd6}int{color} clientTimeout {color:#b4b4b4}={color} {color:#b5cea8}0{color}, {color:#569cd6}bool{color} useBufferedSockets {color:#b4b4b4}={color} {color:#569cd6}false{color}, {color:#569cd6}bool{color} useFramedTransport {color:#b4b4b4}={color} {color:#569cd6}false{color})
}}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message