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 2018/04/02 21:47:00 UTC

[jira] [Resolved] (THRIFT-4540) buffered transport broken when trying to re-open a formerly closed transport

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

Jens Geyer resolved THRIFT-4540.
--------------------------------
       Resolution: Fixed
    Fix Version/s: 0.12.0

Committed.

> buffered transport broken when trying to re-open a formerly closed transport
> ----------------------------------------------------------------------------
>
>                 Key: THRIFT-4540
>                 URL: https://issues.apache.org/jira/browse/THRIFT-4540
>             Project: Thrift
>          Issue Type: Bug
>          Components: Delphi - Library
>            Reporter: Jens Geyer
>            Assignee: Jens Geyer
>            Priority: Major
>             Fix For: 0.12.0
>
>
> TBufferedTransportImpl does not properly set and clear all member vars, which leads to all kinds of strange errors after reopening a formerly closed stream. Root cause is that {{InitBuffers}} must be called when {{Open}}-ing the transport again to get the internal interface pointers aligned again. If this is not done, any read/write may either fail straight away, or may produce errors that indicate an invalid underlying transport.



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