Skip to content

Conversation

@ghost
Copy link

@ghost ghost commented Nov 24, 2014

I use StreamTransport a lot to test functionality locally that otherwise uses a Socket transport. Current implementation of IsOpen returns always true, even though after a close, the whole transport is not usable.

This PR implements IsOpen, Open and Close that reflects the internal state and behaves more similar to other transports like TSocket.

Includes a test case.

@ghost ghost changed the title Better open/close behavior for StreamTransport. THRIFT-2852 Better open/close behavior for StreamTransport. Nov 24, 2014
@asfgit asfgit closed this in cb0afcc Nov 24, 2014
stigsb pushed a commit to stigsb/thrift that referenced this pull request Nov 28, 2014
Client: Go
Patch: Chi Vinh Le <cvl@chinet.info>

This closes apache#285
allengeorge pushed a commit to allengeorge/thrift that referenced this pull request Jan 1, 2017
Client: Go
Patch: Chi Vinh Le <cvl@chinet.info>

This closes apache#285
hsanjuan pushed a commit to gxed/thrift-go that referenced this pull request Jan 30, 2019
Client: Go
Patch: Chi Vinh Le <cvl@chinet.info>

This closes apache#285
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants