You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Jens Geyer (JIRA)" <ji...@apache.org> on 2019/03/14 20:16:00 UTC

[jira] [Resolved] (THRIFT-4821) Normalize TServerSocketTransport constructors in netstd

     [ https://issues.apache.org/jira/browse/THRIFT-4821?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jens Geyer resolved THRIFT-4821.
--------------------------------
       Resolution: Fixed
    Fix Version/s: 0.13.0

committed,thanks!

> 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
>            Reporter: Kyle Smith
>            Assignee: Jens Geyer
>            Priority: Minor
>             Fix For: 0.13.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> 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)