You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Aki Sukegawa (JIRA)" <ji...@apache.org> on 2016/02/04 14:22:40 UTC
[jira] [Resolved] (THRIFT-3598) TBufferedTransport doesn't
instantiate client connection
[ https://issues.apache.org/jira/browse/THRIFT-3598?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Aki Sukegawa resolved THRIFT-3598.
----------------------------------
Resolution: Fixed
Assignee: Phongphan Phuttha
Fix Version/s: 0.9.4
Committed, thanks !
> TBufferedTransport doesn't instantiate client connection
> --------------------------------------------------------
>
> Key: THRIFT-3598
> URL: https://issues.apache.org/jira/browse/THRIFT-3598
> Project: Thrift
> Issue Type: Bug
> Components: Lua - Library
> Affects Versions: 0.9.3
> Environment: Linux
> Reporter: Phongphan Phuttha
> Assignee: Phongphan Phuttha
> Fix For: 0.9.4
>
>
> The TBufferedTransport doesn't seem to correctly instantiated.
> {code}
> local socket = TSocket:new{
> host = '127.0.0.1',
> port = 9090
> }
> assert(socket, 'Failed to create client socket')
> socket:setTimeout(5000)
> local transport = TBufferedTransport:new{
> trans = socket
> }
> assert(transport, 'Failed to create buffered transport')
> local protocol = TBinaryProtocol:new{
> trans = transport
> }
> assert(protocol, 'Failed to create binary protocol')
> local client = ThriftTestClient:new{
> protocol = protocol
> }
> assert(client, 'Failed to create client')
> -- Open the socket
> transport:open()
> client:ping()
> {code}
> The {{transport:open()}} doesn't open connection open to the server.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)